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(