mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
fix sync double initialization issue
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user