diff options
author | Florian Dold <florian@dold.me> | 2022-08-25 17:49:24 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-08-25 17:49:24 +0200 |
commit | 22bc73ac4be09e52be0339780018f6440fdca94c (patch) | |
tree | 99618b673aad847fc86006d9cc2a32bdcbd0e3aa /packages/taler-wallet-core/src/operations/withdraw.ts | |
parent | d112a5b6bc7e5e0a47df98451b75145ddfec4bad (diff) | |
download | wallet-core-22bc73ac4be09e52be0339780018f6440fdca94c.tar.xz |
wallet-core: fix db index on withdraw URI
Diffstat (limited to 'packages/taler-wallet-core/src/operations/withdraw.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/withdraw.ts | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/packages/taler-wallet-core/src/operations/withdraw.ts b/packages/taler-wallet-core/src/operations/withdraw.ts index a0a4b4bbd..f92ce5063 100644 --- a/packages/taler-wallet-core/src/operations/withdraw.ts +++ b/packages/taler-wallet-core/src/operations/withdraw.ts @@ -1542,16 +1542,14 @@ async function registerReserveWithBank( return; } const bankStatusUrl = getBankStatusUrl(bankInfo.talerWithdrawUri); - const httpResp = await ws.http.postJson( - bankStatusUrl, - { - reserve_pub: withdrawalGroup.reservePub, - selected_exchange: bankInfo.exchangePaytoUri, - }, - { - timeout: getReserveRequestTimeout(withdrawalGroup), - }, - ); + const reqBody = { + reserve_pub: withdrawalGroup.reservePub, + selected_exchange: bankInfo.exchangePaytoUri, + }; + logger.info(`registering reserve with bank: ${j2s(reqBody)}`); + const httpResp = await ws.http.postJson(bankStatusUrl, reqBody, { + timeout: getReserveRequestTimeout(withdrawalGroup), + }); await readSuccessResponseJsonOrThrow( httpResp, codecForBankWithdrawalOperationPostResponse(), |