added entity changes check after sync check failure, fixed sync

This commit is contained in:
zadam
2021-11-17 22:57:09 +01:00
parent 298af217e9
commit d345b7ed56
5 changed files with 34 additions and 10 deletions

View File

@@ -701,6 +701,11 @@ function runOnDemandChecks(autoFix) {
consistencyChecks.runChecks();
}
function runEntityChangesChecks() {
const consistencyChecks = new ConsistencyChecks(true);
consistencyChecks.findEntityChangeIssues();
}
sqlInit.dbReady.then(() => {
setInterval(cls.wrap(runPeriodicChecks), 60 * 60 * 1000);
@@ -709,5 +714,6 @@ sqlInit.dbReady.then(() => {
});
module.exports = {
runOnDemandChecks
runOnDemandChecks,
runEntityChangesChecks
};