-comment
This commit is contained in:
parent
126e9e7457
commit
7b2aa57b18
@ -1614,7 +1614,7 @@ export async function deleteTransaction(
|
|||||||
case TransactionType.Refund: {
|
case TransactionType.Refund: {
|
||||||
const refundGroupId = parsedTx.refundGroupId;
|
const refundGroupId = parsedTx.refundGroupId;
|
||||||
await ws.db
|
await ws.db
|
||||||
.mktx((x) => [x.refundGroups, x.tombstones])
|
.mktx((x) => [x.refundGroups, x.tombstones, x.refundItems])
|
||||||
.runReadWrite(async (tx) => {
|
.runReadWrite(async (tx) => {
|
||||||
const refundRecord = await tx.refundGroups.get(refundGroupId);
|
const refundRecord = await tx.refundGroups.get(refundGroupId);
|
||||||
if (!refundRecord) {
|
if (!refundRecord) {
|
||||||
@ -1622,6 +1622,7 @@ export async function deleteTransaction(
|
|||||||
}
|
}
|
||||||
await tx.refundGroups.delete(refundGroupId);
|
await tx.refundGroups.delete(refundGroupId);
|
||||||
await tx.tombstones.put({ id: transactionId });
|
await tx.tombstones.put({ id: transactionId });
|
||||||
|
// FIXME: Also tombstone the refund items, so that they won't reappear.
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user