fix sync double initialization issue

This commit is contained in:
azivner
2018-09-11 10:01:40 +02:00
parent e8797a137f
commit 9b425025c9
3 changed files with 9 additions and 8 deletions

View File

@@ -71,8 +71,8 @@ async function sync() {
async function login() {
const setupService = require('./setup'); // circular dependency issue
if (!await setupService.isSyncServerInitialized()) {
await setupService.setupSyncToSyncServer();
if (!await setupService.hasSyncServerSchemaAndSeed()) {
await setupService.sendSeedToSyncServer();
}
return await doLogin();