server-esm: Fix a few more import issues

This commit is contained in:
Elian Doran
2024-07-18 22:33:36 +03:00
parent ad93fe4b75
commit 8ac8f6c2df
3 changed files with 8 additions and 7 deletions

View File

@@ -20,6 +20,7 @@ import becca from "../becca/becca.js";
import { EntityChange, EntityChangeRecord, EntityRow } from './entity_changes_interface';
import { CookieJar, ExecOpts } from './request_interface';
import setupService from "./setup.js";
import consistency_checks from "./consistency_checks.js";
let proxyToggle = true;
@@ -281,8 +282,7 @@ async function checkContentHash(syncContext: SyncContext) {
if (failedChecks.length > 0) {
// before re-queuing sectors, make sure the entity changes are correct
const consistencyChecks = require('./consistency_checks');
consistencyChecks.runEntityChangesChecks();
consistency_checks.runEntityChangesChecks();
await syncRequest(syncContext, 'POST', `/api/sync/check-entity-changes`);
}