aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/wallet.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2024-07-01 14:39:07 +0200
committerFlorian Dold <florian@dold.me>2024-07-01 14:39:07 +0200
commit4eb724cd4e897b7157cbaf72c7eb0585d550d30a (patch)
tree378d4475ee1dd3e0bfb1a23070c4574bf6bf810b /packages/taler-wallet-core/src/wallet.ts
parent316c43a169bd52c8dcdfb9a3894e66b9c650ca85 (diff)
downloadwallet-core-4eb724cd4e897b7157cbaf72c7eb0585d550d30a.tar.xz
logging, clear cache after updating DB
Diffstat (limited to 'packages/taler-wallet-core/src/wallet.ts')
-rw-r--r--packages/taler-wallet-core/src/wallet.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts
index e4ab03b6f..614310cb6 100644
--- a/packages/taler-wallet-core/src/wallet.ts
+++ b/packages/taler-wallet-core/src/wallet.ts
@@ -1828,8 +1828,8 @@ async function dispatchRequestInternal(
return await wex.cryptoApi.hashString({ str: "hello world" });
}
case WalletApiOperation.ClearDb: {
- wex.ws.clearAllCaches();
await clearDatabase(wex.db.idbHandle());
+ wex.ws.clearAllCaches();
return {};
}
case WalletApiOperation.Recycle: {