mirror of
https://github.com/zadam/trilium.git
synced 2025-11-08 06:15:48 +01:00
syncification
This commit is contained in:
@@ -4,11 +4,11 @@ const sqlInit = require('../services/sql_init');
|
||||
const setupService = require('../services/setup');
|
||||
const utils = require('../services/utils');
|
||||
|
||||
async function setupPage(req, res) {
|
||||
if (await sqlInit.isDbInitialized()) {
|
||||
function setupPage(req, res) {
|
||||
if (sqlInit.isDbInitialized()) {
|
||||
if (utils.isElectron()) {
|
||||
const windowService = require('../services/window');
|
||||
await windowService.createMainWindow();
|
||||
windowService.createMainWindow();
|
||||
windowService.closeSetupWindow();
|
||||
}
|
||||
else {
|
||||
@@ -18,7 +18,7 @@ async function setupPage(req, res) {
|
||||
|
||||
// we got here because DB is not completely initialized so if schema exists
|
||||
// it means we're in sync in progress state.
|
||||
const syncInProgress = await sqlInit.schemaExists();
|
||||
const syncInProgress = sqlInit.schemaExists();
|
||||
|
||||
if (syncInProgress) {
|
||||
// trigger sync if it's not already running
|
||||
|
||||
Reference in New Issue
Block a user