diff options
author | Florian Dold <florian@dold.me> | 2022-09-21 21:47:00 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-09-21 22:50:42 +0200 |
commit | 4649469b58b9a4068fa94de07f415f1bbc58794c (patch) | |
tree | d9db9126ddf51c496e6660acacc7561a71e9252a /packages/taler-wallet-core/src/operations/recoup.ts | |
parent | a398959670d56f5ecd3ef58abc85f14c55c8a427 (diff) | |
download | wallet-core-4649469b58b9a4068fa94de07f415f1bbc58794c.tar.xz |
wallet-core: DB improvements
Diffstat (limited to 'packages/taler-wallet-core/src/operations/recoup.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/recoup.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/operations/recoup.ts b/packages/taler-wallet-core/src/operations/recoup.ts index 6d899b947..2d92ff8ba 100644 --- a/packages/taler-wallet-core/src/operations/recoup.ts +++ b/packages/taler-wallet-core/src/operations/recoup.ts @@ -356,7 +356,9 @@ export async function processRecoupGroupHandler( throw Error(`Coin ${coinPub} not found, can't request recoup`); } if (coin.coinSource.type === CoinSourceType.Withdraw) { - const reserve = await tx.reserves.get(coin.coinSource.reservePub); + const reserve = await tx.reserves.indexes.byReservePub.get( + coin.coinSource.reservePub, + ); if (!reserve) { return; } |