Merge remote-tracking branch 'origin/stable'

# Conflicts:
#	package-lock.json
#	package.json
This commit is contained in:
zadam
2021-11-18 21:36:03 +01:00
7 changed files with 34 additions and 12 deletions

View File

@@ -204,6 +204,11 @@ function queueSector(req) {
entityChangesService.addEntityChangesForSector(entityName, sector);
}
function checkEntityChanges() {
const consistencyChecks = require("../../services/consistency_checks");
consistencyChecks.runEntityChangesChecks();
}
module.exports = {
testSync,
checkSync,
@@ -215,5 +220,6 @@ module.exports = {
update,
getStats,
syncFinished,
queueSector
queueSector,
checkEntityChanges
};

View File

@@ -295,6 +295,7 @@ function register(app) {
route(GET, '/api/sync/changed', [auth.checkApiAuth], syncApiRoute.getChanged, apiResultHandler);
route(PUT, '/api/sync/update', [auth.checkApiAuth], syncApiRoute.update, apiResultHandler);
route(POST, '/api/sync/finished', [auth.checkApiAuth], syncApiRoute.syncFinished, apiResultHandler);
route(POST, '/api/sync/check-entity-changes', [auth.checkApiAuth], syncApiRoute.checkEntityChanges, apiResultHandler);
route(POST, '/api/sync/queue-sector/:entityName/:sector', [auth.checkApiAuth], syncApiRoute.queueSector, apiResultHandler);
route(GET, '/api/sync/stats', [], syncApiRoute.getStats, apiResultHandler);