wallet-core: fix db index on withdraw URI
This commit is contained in:
parent
d112a5b6bc
commit
22bc73ac4b
@ -1835,7 +1835,7 @@ export const WalletStoresV1 = {
|
|||||||
byStatus: describeIndex("byStatus", "operationStatus"),
|
byStatus: describeIndex("byStatus", "operationStatus"),
|
||||||
byTalerWithdrawUri: describeIndex(
|
byTalerWithdrawUri: describeIndex(
|
||||||
"byTalerWithdrawUri",
|
"byTalerWithdrawUri",
|
||||||
"bankInfo.talerWithdrawUri",
|
"wgInfo.bankInfo.talerWithdrawUri",
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
@ -1542,16 +1542,14 @@ async function registerReserveWithBank(
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const bankStatusUrl = getBankStatusUrl(bankInfo.talerWithdrawUri);
|
const bankStatusUrl = getBankStatusUrl(bankInfo.talerWithdrawUri);
|
||||||
const httpResp = await ws.http.postJson(
|
const reqBody = {
|
||||||
bankStatusUrl,
|
reserve_pub: withdrawalGroup.reservePub,
|
||||||
{
|
selected_exchange: bankInfo.exchangePaytoUri,
|
||||||
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),
|
||||||
timeout: getReserveRequestTimeout(withdrawalGroup),
|
});
|
||||||
},
|
|
||||||
);
|
|
||||||
await readSuccessResponseJsonOrThrow(
|
await readSuccessResponseJsonOrThrow(
|
||||||
httpResp,
|
httpResp,
|
||||||
codecForBankWithdrawalOperationPostResponse(),
|
codecForBankWithdrawalOperationPostResponse(),
|
||||||
|
Loading…
Reference in New Issue
Block a user