From d1f69a284a28386b124bbbea295ce8064ab2a362 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vi=CC=81ctor=20Falco=CC=81n?= Date: Tue, 27 Jan 2026 11:10:34 +0100 Subject: [PATCH] fix: Delete transactions on local browser DB after deleting it on the backend --- resources/js/services/transaction-sync.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resources/js/services/transaction-sync.ts b/resources/js/services/transaction-sync.ts index 2d2b4d91..bfc5fb30 100644 --- a/resources/js/services/transaction-sync.ts +++ b/resources/js/services/transaction-sync.ts @@ -1,4 +1,5 @@ import { encrypt, importKey } from '@/lib/crypto'; +import { db } from '@/lib/dexie-db'; import { getStoredKey } from '@/lib/key-storage'; import { TransactionSyncManager } from '@/lib/sync-manager'; import type { Transaction } from '@/types/transaction'; @@ -169,6 +170,7 @@ class TransactionSyncService { async delete(id: string): Promise { await axios.delete(`/transactions/${id}`); + await db.transactions.delete(id); } async updateManyIndividual(