diff options
author | Florian Dold <florian@dold.me> | 2022-11-02 14:23:26 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-11-02 14:23:26 +0100 |
commit | 1e6e1a22cdb16975f3a914b2f1be6db0ae1b241d (patch) | |
tree | ef3b0bcf0d8c8bf8bd3fd2082b53d450f7a09f11 /packages/taler-wallet-core/src/operations/withdraw.ts | |
parent | fe011321a4b65bc0736634ee2a4d9c7bf0618351 (diff) | |
download | wallet-core-1e6e1a22cdb16975f3a914b2f1be6db0ae1b241d.tar.xz |
wallet-core: fix exchange management test case, surface exchange update error info in list
Diffstat (limited to 'packages/taler-wallet-core/src/operations/withdraw.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/withdraw.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/operations/withdraw.ts b/packages/taler-wallet-core/src/operations/withdraw.ts index 0e6bb8339..a9ecdf369 100644 --- a/packages/taler-wallet-core/src/operations/withdraw.ts +++ b/packages/taler-wallet-core/src/operations/withdraw.ts @@ -1385,6 +1385,7 @@ export async function getWithdrawalDetailsForUri( x.exchangeDetails, x.exchangeTos, x.denominations, + x.operationRetries, ]) .runReadOnly(async (tx) => { const exchangeRecords = await tx.exchanges.iter().toArray(); @@ -1396,8 +1397,13 @@ export async function getWithdrawalDetailsForUri( const denominations = await tx.denominations.indexes.byExchangeBaseUrl .iter(r.baseUrl) .toArray(); + const retryRecord = await tx.operationRetries.get( + RetryTags.forExchangeUpdate(r), + ); if (exchangeDetails && denominations) { - exchanges.push(makeExchangeListItem(r, exchangeDetails)); + exchanges.push( + makeExchangeListItem(r, exchangeDetails, retryRecord?.lastError), + ); } } }); |