taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 88aae39824d51624a050297728034ed606606272
parent 040607d927d1ebb5f0d2149fb3c805ed2fad5ce4
Author: Florian Dold <florian@dold.me>
Date:   Sat, 18 Jul 2026 17:10:29 +0200

fix wrong for..in loop in fixup

Diffstat:
Mpackages/taler-wallet-core/src/db-indexeddb.ts | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/packages/taler-wallet-core/src/db-indexeddb.ts b/packages/taler-wallet-core/src/db-indexeddb.ts @@ -3061,8 +3061,8 @@ export const walletDbFixups: FixupDescription[] = [ // Removing this would cause old transactions // to show up under multiple exchanges { - fn: fixup20250915TransactionsScope, - name: "fixup20250915TransactionsScope", + fn: fixup20260718TransactionsScope, + name: "fixup20260718TransactionsScope", }, // Removing this would cause merchant acceptable // amount to be calculaed based on exchangeBaseUrl @@ -3235,7 +3235,7 @@ async function fixup20260116BadRefreshCoinSelection( * This fixup sets the exchanges of a payment transaction * based on the coin selection. */ -async function fixup20250915TransactionsScope( +async function fixup20260718TransactionsScope( tx: WalletIndexedDbTransaction, ): Promise<void> { await tx.purchases.iter().forEachAsync(async (rec) => { @@ -3245,7 +3245,7 @@ async function fixup20250915TransactionsScope( ) { const pcs = rec.payInfo.payCoinSelection.coinPubs; const exchSet: Set<string> = new Set(); - for (const pc in pcs) { + for (const pc of pcs) { const coin = await tx.coins.get(pc); if (!coin) { continue;