summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-06-09 16:47:45 +0200
committerFlorian Dold <florian@dold.me>2021-06-09 16:47:45 +0200
commit0ee44c3a5872d00cc1e8295f5b8e54b72d4bbebb (patch)
tree8446599a001fb40eeb797a2e530e20eaaf51eabe /packages/taler-wallet-core
parent2d4a53f5221274982954a6377e948f3aa441c083 (diff)
downloadwallet-core-0ee44c3a5872d00cc1e8295f5b8e54b72d4bbebb.tar.gz
wallet-core-0ee44c3a5872d00cc1e8295f5b8e54b72d4bbebb.tar.bz2
wallet-core-0ee44c3a5872d00cc1e8295f5b8e54b72d4bbebb.zip
add missing await
Diffstat (limited to 'packages/taler-wallet-core')
-rw-r--r--packages/taler-wallet-core/src/operations/pay.ts2
-rw-r--r--packages/taler-wallet-core/src/operations/reserves.ts5
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 86b66e6f6..9e23f6a17 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 73975fb03..6f531820c 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.