mirror of
https://github.com/zadam/trilium.git
synced 2025-11-15 09:45:52 +01:00
sync fixes
This commit is contained in:
@@ -47,8 +47,8 @@ function checkContentHashes(otherHashes) {
|
||||
const failedChecks = [];
|
||||
|
||||
for (const entityName in entityHashes) {
|
||||
const thisSectorHashes = entityHashes[entityName];
|
||||
const otherSectorHashes = otherHashes[entityName];
|
||||
const thisSectorHashes = entityHashes[entityName] || {};
|
||||
const otherSectorHashes = otherHashes[entityName] || {};
|
||||
|
||||
const sectors = new Set(Object.keys(thisSectorHashes).concat(Object.keys(otherSectorHashes)));
|
||||
|
||||
|
||||
@@ -250,11 +250,6 @@ async function checkContentHash(syncContext) {
|
||||
|
||||
const failedChecks = contentHashService.checkContentHashes(resp.entityHashes);
|
||||
|
||||
process.exit(0);
|
||||
throw new Error("AAAA");
|
||||
|
||||
return;
|
||||
|
||||
if (failedChecks.length > 0) {
|
||||
// before requeuing sectors make sure the entity changes are correct
|
||||
const consistencyChecks = require("./consistency_checks");
|
||||
|
||||
Reference in New Issue
Block a user