diff options
author | Sebastian <sebasjm@gmail.com> | 2022-05-18 15:57:10 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-05-18 15:57:10 -0300 |
commit | 5595e942b44135e11af85d6a4e633239a3a8997f (patch) | |
tree | ff2773d2f29290fc1819f766315b87c6a3f24dfd /packages/taler-wallet-core/src/operations/pay.ts | |
parent | 145714b335be7896501afe21cb8c7419c1e9cb83 (diff) | |
download | wallet-core-5595e942b44135e11af85d6a4e633239a3a8997f.tar.gz wallet-core-5595e942b44135e11af85d6a4e633239a3a8997f.tar.bz2 wallet-core-5595e942b44135e11af85d6a4e633239a3a8997f.zip |
fix: update retry info before return
Diffstat (limited to 'packages/taler-wallet-core/src/operations/pay.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/pay.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/taler-wallet-core/src/operations/pay.ts b/packages/taler-wallet-core/src/operations/pay.ts index ceba7ef8c..ef81d117a 100644 --- a/packages/taler-wallet-core/src/operations/pay.ts +++ b/packages/taler-wallet-core/src/operations/pay.ts @@ -672,6 +672,8 @@ async function processDownloadProposalImpl( } = {}, ): Promise<void> { const forceNow = options.forceNow ?? false; + await setupProposalRetry(ws, proposalId, { reset: forceNow }); + const proposal = await ws.db .mktx((x) => ({ proposals: x.proposals })) .runReadOnly(async (tx) => { @@ -686,8 +688,6 @@ async function processDownloadProposalImpl( return; } - await setupProposalRetry(ws, proposalId, { reset: forceNow }); - const orderClaimUrl = new URL( `orders/${proposal.orderId}/claim`, proposal.merchantBaseUrl, |