aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-05-24 15:09:42 +0200
committerFlorian Dold <florian@dold.me>2023-05-24 15:09:42 +0200
commit7b2aa57b1884a076334e916f1c82394ca7fc2a21 (patch)
treefdc822a80dc9cbec825230d3f6fd1d26ee68c9f3
parent126e9e7457851d7d4293797c4c75cafea59f3444 (diff)
-comment
-rw-r--r--packages/taler-wallet-core/src/operations/transactions.ts3
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;
}