diff options
Diffstat (limited to 'packages/taler-wallet-core/src/operations/transactions.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/transactions.ts | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/packages/taler-wallet-core/src/operations/transactions.ts b/packages/taler-wallet-core/src/operations/transactions.ts index 84f879f58..e3cfa0c25 100644 --- a/packages/taler-wallet-core/src/operations/transactions.ts +++ b/packages/taler-wallet-core/src/operations/transactions.ts @@ -77,6 +77,7 @@ import { abortDepositGroup, cancelAbortingDepositGroup, computeDepositTransactionStatus, + deleteDepositGroup, processDepositGroup, resumeDepositGroup, suspendDepositGroup, @@ -1601,18 +1602,7 @@ export async function deleteTransaction( case TransactionType.Deposit: { const depositGroupId = parsedTx.depositGroupId; - await ws.db - .mktx((x) => [x.depositGroups, x.tombstones]) - .runReadWrite(async (tx) => { - const tipRecord = await tx.depositGroups.get(depositGroupId); - if (tipRecord) { - await tx.depositGroups.delete(depositGroupId); - await tx.tombstones.put({ - id: TombstoneTag.DeleteDepositGroup + ":" + depositGroupId, - }); - } - }); - + await deleteDepositGroup(ws, depositGroupId); return; } |