-comment
This commit is contained in:
parent
126e9e7457
commit
7b2aa57b18
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user