mirror of
https://github.com/zadam/trilium.git
synced 2025-11-18 03:00:41 +01:00
server-esm: Handle more straightforward requires
This commit is contained in:
@@ -21,6 +21,7 @@ import { EntityChange, EntityChangeRecord, EntityRow } from './entity_changes_in
|
||||
import { CookieJar, ExecOpts } from './request_interface';
|
||||
import setupService from "./setup.js";
|
||||
import consistency_checks from "./consistency_checks.js";
|
||||
import becca_loader from "../becca/becca_loader.js";
|
||||
|
||||
let proxyToggle = true;
|
||||
|
||||
@@ -442,7 +443,7 @@ function getOutstandingPullCount() {
|
||||
return outstandingPullCount;
|
||||
}
|
||||
|
||||
require('../becca/becca_loader').beccaLoaded.then(() => {
|
||||
becca_loader.beccaLoaded.then(() => {
|
||||
setInterval(cls.wrap(sync), 60000);
|
||||
|
||||
// kickoff initial sync immediately, but should happen after initial consistency checks
|
||||
|
||||
Reference in New Issue
Block a user