Skip to content

Build your personal knowledge base with Trilium Notes

fix dead references in consistency_checks.js

zadam147160ed4508
diff --git a/src/services/consistency_checks.js b/src/services/consistency_checks.js
index 3fecf607c9..dc2e6072c4 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'