diff --git a/src/services/consistency_checks.js b/src/services/consistency_checks.js index 3fecf607c..dc2e6072c 100644 --- a/src/services/consistency_checks.js +++ b/src/services/consistency_checks.js @@ -156,7 +156,7 @@ class ConsistencyChecks { let message = `Branch '${branchId}' was was missing parent note '${parentNoteId}', so it was deleted. `; if (becca.getNote(noteId).getParentBranches().length === 0) { - const newBranch = new Branch({ + const newBranch = new BBranch({ parentNoteId: 'root', noteId: noteId, prefix: 'recovered' @@ -447,7 +447,7 @@ class ConsistencyChecks { branch.markAsDeleted("parent-is-search"); // create a replacement branch in root parent - new Branch({ + new BBranch({ parentNoteId: 'root', noteId: branch.noteId, prefix: 'recovered'