diff options
author | Florian Dold <florian@dold.me> | 2021-08-06 17:15:46 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-08-06 17:15:46 +0200 |
commit | 06db37640e9932f9d2595ffa7c3cefe2204326db (patch) | |
tree | 55aebb32b6516b5287f6df892360503ea5f5433b /packages/taler-wallet-core/src/operations/withdraw.ts | |
parent | 05e52d4e116222728d9bcba3bcbf9e441bb4e4ed (diff) | |
download | wallet-core-06db37640e9932f9d2595ffa7c3cefe2204326db.tar.xz |
perf: do bulk read
Diffstat (limited to 'packages/taler-wallet-core/src/operations/withdraw.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/withdraw.ts | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/packages/taler-wallet-core/src/operations/withdraw.ts b/packages/taler-wallet-core/src/operations/withdraw.ts index 99d8d7d39..44e626110 100644 --- a/packages/taler-wallet-core/src/operations/withdraw.ts +++ b/packages/taler-wallet-core/src/operations/withdraw.ts @@ -306,15 +306,7 @@ export async function getCandidateWithdrawalDenoms( return await ws.db .mktx((x) => ({ denominations: x.denominations })) .runReadOnly(async (tx) => { - return tx.denominations.indexes.byExchangeBaseUrl - .iter(exchangeBaseUrl) - .filter((d) => { - return ( - (d.status === DenominationStatus.Unverified || - d.status === DenominationStatus.VerifiedGood) && - !d.isRevoked - ); - }); + return tx.denominations.indexes.byExchangeBaseUrl.getAll(exchangeBaseUrl); }); } |