From 147160ed450813320cef1a717273a4ac6b062de7 Mon Sep 17 00:00:00 2001 From: zadam Date: Thu, 16 Mar 2023 13:30:33 +0100 Subject: [PATCH] fix dead references in consistency_checks.js --- src/services/consistency_checks.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'