This commit is contained in:
Florian Dold 2023-05-24 15:09:42 +02:00
parent 126e9e7457
commit 7b2aa57b18
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -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;
}