diff options
author | Florian Dold <florian@dold.me> | 2023-05-24 15:09:42 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-05-24 15:09:42 +0200 |
commit | 7b2aa57b1884a076334e916f1c82394ca7fc2a21 (patch) | |
tree | fdc822a80dc9cbec825230d3f6fd1d26ee68c9f3 /packages/taler-wallet-core/src | |
parent | 126e9e7457851d7d4293797c4c75cafea59f3444 (diff) | |
download | wallet-core-7b2aa57b1884a076334e916f1c82394ca7fc2a21.tar.xz |
-comment
Diffstat (limited to 'packages/taler-wallet-core/src')
-rw-r--r-- | packages/taler-wallet-core/src/operations/transactions.ts | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |