From 74dca5685094a8c407a5f8a3c2e0da93a4a7f66c Mon Sep 17 00:00:00 2001 From: Ulas Kalayci Date: Mon, 27 Apr 2026 22:34:23 +0200 Subject: [PATCH] =?UTF-8?q?fix(google-sync):=20db.transaction=20=E2=86=92?= =?UTF-8?q?=20db.get().transaction=20in=20upsertGoogleEvents?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/services/google-calendar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/services/google-calendar.js b/server/services/google-calendar.js index 9d2b7aa..c005a20 100644 --- a/server/services/google-calendar.js +++ b/server/services/google-calendar.js @@ -267,7 +267,7 @@ function upsertGoogleEvents(items, calRefId = null, calColor = GOOGLE_COLOR) { DELETE FROM calendar_events WHERE external_calendar_id = ? AND external_source = 'google' `); - const insertOrUpdate = db.transaction((item) => { + const insertOrUpdate = db.get().transaction((item) => { if (item.status === 'cancelled') { del.run(item.id); return;