server-esm: Handle more straightforward requires

This commit is contained in:
Elian Doran
2024-07-18 23:45:17 +03:00
parent f137d38300
commit 508b5e3c69
2 changed files with 10 additions and 6 deletions

View File

@@ -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