add missing await
This commit is contained in:
parent
2d4a53f522
commit
0ee44c3a58
@ -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,
|
||||
]);
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user