diff options
Diffstat (limited to 'src/wallet-impl/refund.ts')
-rw-r--r-- | src/wallet-impl/refund.ts | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/wallet-impl/refund.ts b/src/wallet-impl/refund.ts index 2a9dea149..4cd507e40 100644 --- a/src/wallet-impl/refund.ts +++ b/src/wallet-impl/refund.ts @@ -91,13 +91,12 @@ export async function getFullRefundFees( async function submitRefunds( ws: InternalWalletState, - contractTermsHash: string, + proposalId: string, ): Promise<void> { - const purchase = await oneShotGet(ws.db, Stores.purchases, contractTermsHash); + const purchase = await oneShotGet(ws.db, Stores.purchases, proposalId); if (!purchase) { console.error( - "not submitting refunds, contract terms not found:", - contractTermsHash, + "not submitting refunds, payment not found:", ); return; } @@ -160,7 +159,7 @@ async function submitRefunds( ws.db, [Stores.purchases, Stores.coins], async tx => { - await tx.mutate(Stores.purchases, contractTermsHash, transformPurchase); + await tx.mutate(Stores.purchases, proposalId, transformPurchase); await tx.mutate(Stores.coins, perm.coin_pub, transformCoin); }, ); |