mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix dead references in consistency_checks.js
This commit is contained in:
parent
63a70f2ffa
commit
147160ed45
@ -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'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user