aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/exchanges.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2024-02-27 17:44:46 +0100
committerFlorian Dold <florian@dold.me>2024-02-27 17:44:46 +0100
commitf08798520ef9b8b0ff36c6aaf93653605b53b912 (patch)
tree7b85598504d5b92fdda592153f1b8155abdbf363 /packages/taler-wallet-core/src/exchanges.ts
parent523280b3862b528512ff93c651bc0d9ed632fbf6 (diff)
downloadwallet-core-f08798520ef9b8b0ff36c6aaf93653605b53b912.tar.gz
wallet-core-f08798520ef9b8b0ff36c6aaf93653605b53b912.tar.bz2
wallet-core-f08798520ef9b8b0ff36c6aaf93653605b53b912.zip
more observability
Diffstat (limited to 'packages/taler-wallet-core/src/exchanges.ts')
-rw-r--r--packages/taler-wallet-core/src/exchanges.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/taler-wallet-core/src/exchanges.ts b/packages/taler-wallet-core/src/exchanges.ts
index a26b3f5ca..4453123fa 100644
--- a/packages/taler-wallet-core/src/exchanges.ts
+++ b/packages/taler-wallet-core/src/exchanges.ts
@@ -415,10 +415,10 @@ export async function acceptExchangeTermsOfService(
* Mark the current ToS version as accepted by the user.
*/
export async function forgetExchangeTermsOfService(
- ws: InternalWalletState,
+ wex: WalletExecutionContext,
exchangeBaseUrl: string,
): Promise<void> {
- const notif = await ws.db.runReadWriteTx(
+ const notif = await wex.db.runReadWriteTx(
["exchangeDetails", "exchanges"],
async (tx) => {
const exch = await tx.exchanges.get(exchangeBaseUrl);
@@ -439,7 +439,7 @@ export async function forgetExchangeTermsOfService(
},
);
if (notif) {
- ws.notify(notif);
+ wex.ws.notify(notif);
}
}