mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 21:36:05 +01:00
added entity changes check after sync check failure, fixed sync
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user