commit 6de451b45f9ce63cb078c2dbd4c6affd9c9fe3a6
parent f337b1dd88ac20982956f666f9ef64962002edfd
Author: Florian Dold <florian@dold.me>
Date: Thu, 12 Jun 2025 11:04:04 +0200
wallet-core: missing await
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/packages/taler-wallet-core/src/host-impl.node.ts b/packages/taler-wallet-core/src/host-impl.node.ts
@@ -138,7 +138,7 @@ async function makeSqliteDb(
},
async exportToFile(directory, stem) {
const path = `${directory}/${stem}.sqlite3`;
- myBackend.backupToFile(path);
+ await myBackend.backupToFile(path);
return {
path,
};
diff --git a/packages/taler-wallet-core/src/host-impl.qtart.ts b/packages/taler-wallet-core/src/host-impl.qtart.ts
@@ -124,7 +124,7 @@ async function makeSqliteDb(
},
async exportToFile(directory, stem) {
const path = `${directory}/${stem}.sqlite3`;
- myBackend.backupToFile(path);
+ await myBackend.backupToFile(path);
return {
path,
};
@@ -193,7 +193,7 @@ export async function createNativeWalletHost2(
logger.info("using JSON file DB backend (slow, only use for testing)");
dbResp = await makeFileDb(args);
} else {
-// logger.info("using sqlite3 DB backend");
+ // logger.info("using sqlite3 DB backend");
dbResp = await makeSqliteDb(args);
}