diff options
author | Florian Dold <florian@dold.me> | 2024-07-17 17:23:19 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-07-17 17:23:19 +0200 |
commit | e2b3b604be2c2534ddcb0455f83c19c807e0485a (patch) | |
tree | 7b88b1b9973e6d8c4bd51c2b804b7f9df402e872 | |
parent | ba68d7f49503aa48f7f8e33cf22634de1a79097f (diff) |
wallet-core: upsert currency info from the exchange
-rw-r--r-- | packages/taler-wallet-core/src/exchanges.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/exchanges.ts b/packages/taler-wallet-core/src/exchanges.ts index 5d1bf17fa..9149383c2 100644 --- a/packages/taler-wallet-core/src/exchanges.ts +++ b/packages/taler-wallet-core/src/exchanges.ts @@ -1644,7 +1644,9 @@ export async function updateExchangeFromUrlHandler( await tx.exchanges.put(r); if (keysInfo.currencySpecification) { - await WalletDbHelpers.insertCurrencyInfoUnlessExists(tx, { + // Since this is the per-exchange currency info, + // we update it when the exchange changes it. + await WalletDbHelpers.upsertCurrencyInfo(tx, { currencySpec: keysInfo.currencySpecification, scopeInfo: { type: ScopeType.Exchange, |