From 7b2aa57b1884a076334e916f1c82394ca7fc2a21 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 24 May 2023 15:09:42 +0200 Subject: -comment --- packages/taler-wallet-core/src/operations/transactions.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'packages/taler-wallet-core') diff --git a/packages/taler-wallet-core/src/operations/transactions.ts b/packages/taler-wallet-core/src/operations/transactions.ts index dba082854..e11b628db 100644 --- a/packages/taler-wallet-core/src/operations/transactions.ts +++ b/packages/taler-wallet-core/src/operations/transactions.ts @@ -1614,7 +1614,7 @@ export async function deleteTransaction( case TransactionType.Refund: { const refundGroupId = parsedTx.refundGroupId; await ws.db - .mktx((x) => [x.refundGroups, x.tombstones]) + .mktx((x) => [x.refundGroups, x.tombstones, x.refundItems]) .runReadWrite(async (tx) => { const refundRecord = await tx.refundGroups.get(refundGroupId); if (!refundRecord) { @@ -1622,6 +1622,7 @@ export async function deleteTransaction( } await tx.refundGroups.delete(refundGroupId); await tx.tombstones.put({ id: transactionId }); + // FIXME: Also tombstone the refund items, so that they won't reappear. }); return; } -- cgit v1.2.3