diff options
author | Sebastian <sebasjm@gmail.com> | 2022-05-18 16:39:36 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-05-18 16:39:36 -0300 |
commit | 611a57ca0a73d864584d8f06aa3d6a3ed615542e (patch) | |
tree | 651a85d4c0950695d21fcbcba10a8cb1a8f299ce /packages | |
parent | 5595e942b44135e11af85d6a4e633239a3a8997f (diff) |
fix: update retry info before return also for purchase
Diffstat (limited to 'packages')
-rw-r--r-- | packages/taler-wallet-core/src/operations/pay.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/operations/pay.ts b/packages/taler-wallet-core/src/operations/pay.ts index ef81d117a..b28faa4c1 100644 --- a/packages/taler-wallet-core/src/operations/pay.ts +++ b/packages/taler-wallet-core/src/operations/pay.ts @@ -1540,6 +1540,7 @@ async function processPurchasePayImpl( } = {}, ): Promise<ConfirmPayResult> { const forceNow = options.forceNow ?? false; + await setupPurchasePayRetry(ws, proposalId, { reset: forceNow }); const purchase = await ws.db .mktx((x) => ({ purchases: x.purchases })) .runReadOnly(async (tx) => { @@ -1562,7 +1563,6 @@ async function processPurchasePayImpl( lastError: purchase.lastPayError, }; } - await setupPurchasePayRetry(ws, proposalId, { reset: forceNow }); logger.trace(`processing purchase pay ${proposalId}`); const sessionId = purchase.lastSessionId; |