server-ts: Port consistency_checks

This commit is contained in:
Elian Doran
2024-04-03 20:47:41 +03:00
parent ed47c23e23
commit aa233b8adb
7 changed files with 111 additions and 49 deletions

View File

@@ -282,7 +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.js');
const consistencyChecks = require('./consistency_checks');
consistencyChecks.runEntityChangesChecks();
await syncRequest(syncContext, 'POST', `/api/sync/check-entity-changes`);