mirror of
https://github.com/zadam/trilium.git
synced 2025-11-15 17:55:52 +01:00
separated DB initialization methods into sql_init
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
"use strict";
|
||||
|
||||
const sql = require('./sql');
|
||||
const sqlInit = require('./sql_init');
|
||||
const log = require('./log');
|
||||
const messagingService = require('./messaging');
|
||||
const syncMutexService = require('./sync_mutex');
|
||||
@@ -265,7 +266,7 @@ async function runChecks() {
|
||||
}
|
||||
}
|
||||
|
||||
sql.dbReady.then(() => {
|
||||
sqlInit.dbReady.then(() => {
|
||||
setInterval(cls.wrap(runChecks), 60 * 60 * 1000);
|
||||
|
||||
// kickoff backup immediately
|
||||
|
||||
Reference in New Issue
Block a user