#98, working sync setup from server to desktop instance + refactoring of DB initialization

This commit is contained in:
azivner
2018-07-22 19:56:20 +02:00
parent a201661ce5
commit 073300bbcd
10 changed files with 149 additions and 62 deletions

View File

@@ -28,7 +28,7 @@ async function setUserNamePassword() {
await passwordEncryptionService.setDataKey(password, utils.randomSecureToken(16));
sqlInit.setDbReadyAsResolved();
await sqlInit.initDbConnection();
}
const noteCount = parseInt(process.argv[2]);
@@ -71,4 +71,4 @@ async function start() {
process.exit(0);
}
sqlInit.schemaReady.then(cls.wrap(start));
sqlInit.dbReady.then(cls.wrap(start));