This commit is contained in:
adueck 2022-09-22 18:52:31 +04:00
parent 8cbec3b8cc
commit 2511b717a3
1 changed files with 3 additions and 0 deletions

View File

@ -73,6 +73,9 @@ function initializeLocalDb(type: LocalDbType, refresh: () => void, user: AT.Ling
? user.wordlistDbName
: "";
const password = "couchDbPassword" in user ? user.couchDbPassword : "";
console.log("initializing db", type);
console.log("using pwd", password);
console.log({ user });
const db = dbs[type];
// only initialize the db if it doesn't exist or if it has a different name
if ((!db) || (db.db?.name !== name)) {