diff options
author | Florian Dold <florian@dold.me> | 2023-02-19 23:13:44 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-02-19 23:13:44 +0100 |
commit | e6ed901626a5219a1d091f4f41654365d2c29531 (patch) | |
tree | 1dfb2fbc7615ebe6e91621b901bf90968bd98edf /packages/taler-wallet-core/src/operations/withdraw.ts | |
parent | 925ef1f410e01323ee24ab9019afcc1713bf07c2 (diff) | |
download | wallet-core-e6ed901626a5219a1d091f4f41654365d2c29531.tar.xz |
wallet-core: various p2p payment fixes
Diffstat (limited to 'packages/taler-wallet-core/src/operations/withdraw.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/withdraw.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/operations/withdraw.ts b/packages/taler-wallet-core/src/operations/withdraw.ts index f6d79b229..e6c233e2b 100644 --- a/packages/taler-wallet-core/src/operations/withdraw.ts +++ b/packages/taler-wallet-core/src/operations/withdraw.ts @@ -1914,6 +1914,12 @@ export async function internalCreateWithdrawalGroup( reservePriv: withdrawalGroup.reservePriv, }); + const exchange = await tx.exchanges.get(withdrawalGroup.exchangeBaseUrl); + if (exchange) { + exchange.lastWithdrawal = TalerProtocolTimestamp.now(); + await tx.exchanges.put(exchange); + } + if (!isAudited && !isTrusted) { await tx.exchangeTrust.put({ currency: amount.currency, |