fix dead references in consistency_checks.js

This commit is contained in:
zadam 2023-03-16 13:30:33 +01:00
parent 63a70f2ffa
commit 147160ed45

View File

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