[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: wallet-core: fix db index on
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: wallet-core: fix db index on withdraw URI |
Date: |
Thu, 25 Aug 2022 17:49:26 +0200 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-core.
The following commit(s) were added to refs/heads/master by this push:
new 22bc73ac wallet-core: fix db index on withdraw URI
22bc73ac is described below
commit 22bc73ac4be09e52be0339780018f6440fdca94c
Author: Florian Dold <florian@dold.me>
AuthorDate: Thu Aug 25 17:49:24 2022 +0200
wallet-core: fix db index on withdraw URI
---
packages/taler-wallet-core/src/db.ts | 2 +-
packages/taler-wallet-core/src/operations/withdraw.ts | 18 ++++++++----------
2 files changed, 9 insertions(+), 11 deletions(-)
diff --git a/packages/taler-wallet-core/src/db.ts
b/packages/taler-wallet-core/src/db.ts
index 40f4ea2b..7ba0fadc 100644
--- a/packages/taler-wallet-core/src/db.ts
+++ b/packages/taler-wallet-core/src/db.ts
@@ -1835,7 +1835,7 @@ export const WalletStoresV1 = {
byStatus: describeIndex("byStatus", "operationStatus"),
byTalerWithdrawUri: describeIndex(
"byTalerWithdrawUri",
- "bankInfo.talerWithdrawUri",
+ "wgInfo.bankInfo.talerWithdrawUri",
),
},
),
diff --git a/packages/taler-wallet-core/src/operations/withdraw.ts
b/packages/taler-wallet-core/src/operations/withdraw.ts
index a0a4b4bb..f92ce506 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(),
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-wallet-core] branch master updated: wallet-core: fix db index on withdraw URI,
gnunet <=