commit e2b3b604be2c2534ddcb0455f83c19c807e0485a
parent ba68d7f49503aa48f7f8e33cf22634de1a79097f
Author: Florian Dold <florian@dold.me>
Date: Wed, 17 Jul 2024 17:23:19 +0200
wallet-core: upsert currency info from the exchange
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git 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,