[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: add missing await
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: add missing await |
Date: |
Wed, 09 Jun 2021 16:47:50 +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 0ee44c3a add missing await
0ee44c3a is described below
commit 0ee44c3a5872d00cc1e8295f5b8e54b72d4bbebb
Author: Florian Dold <florian@dold.me>
AuthorDate: Wed Jun 9 16:47:45 2021 +0200
add missing await
---
packages/taler-wallet-core/src/operations/pay.ts | 2 +-
packages/taler-wallet-core/src/operations/reserves.ts | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/packages/taler-wallet-core/src/operations/pay.ts
b/packages/taler-wallet-core/src/operations/pay.ts
index 86b66e6f..9e23f6a1 100644
--- a/packages/taler-wallet-core/src/operations/pay.ts
+++ b/packages/taler-wallet-core/src/operations/pay.ts
@@ -874,7 +874,7 @@ async function startDownloadProposal(
await ws.db
.mktx((x) => ({ proposals: x.proposals }))
.runReadWrite(async (tx) => {
- const existingRecord = tx.proposals.indexes.byUrlAndOrderId.get([
+ const existingRecord = await tx.proposals.indexes.byUrlAndOrderId.get([
merchantBaseUrl,
orderId,
]);
diff --git a/packages/taler-wallet-core/src/operations/reserves.ts
b/packages/taler-wallet-core/src/operations/reserves.ts
index 73975fb0..6f531820 100644
--- a/packages/taler-wallet-core/src/operations/reserves.ts
+++ b/packages/taler-wallet-core/src/operations/reserves.ts
@@ -760,8 +760,9 @@ export async function createTalerWithdrawReserve(
talerWithdrawUri: string,
selectedExchange: string,
): Promise<AcceptWithdrawalResponse> {
+ await updateExchangeFromUrl(ws, selectedExchange);
const withdrawInfo = await getBankWithdrawalInfo(ws, talerWithdrawUri);
- const exchangeWire = await getExchangePaytoUri(
+ const exchangePaytoUri = await getExchangePaytoUri(
ws,
selectedExchange,
withdrawInfo.wireTypes,
@@ -771,7 +772,7 @@ export async function createTalerWithdrawReserve(
bankWithdrawStatusUrl: withdrawInfo.extractedStatusUrl,
exchange: selectedExchange,
senderWire: withdrawInfo.senderWire,
- exchangePaytoUri: exchangeWire,
+ exchangePaytoUri: exchangePaytoUri,
});
// We do this here, as the reserve should be registered before we return,
// so that we can redirect the user to the bank's status page.
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-wallet-core] branch master updated: add missing await,
gnunet <=