fix(google-sync): db.transaction → db.get().transaction in upsertGoogleEvents

This commit is contained in:
Ulas Kalayci
2026-04-27 22:34:23 +02:00
parent e759c4fe98
commit 74dca56850
+1 -1
View File
@@ -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;