commit 7b2aa57b1884a076334e916f1c82394ca7fc2a21
parent 126e9e7457851d7d4293797c4c75cafea59f3444
Author: Florian Dold <florian@dold.me>
Date: Wed, 24 May 2023 15:09:42 +0200
-comment
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git 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;
}