mirror of
https://github.com/zadam/trilium.git
synced 2025-10-29 01:06:36 +01:00
implemented consistency checks
This commit is contained in:
@@ -73,7 +73,7 @@ async function protectNoteRecursively(noteId, dataKey, protect) {
|
||||
|
||||
await protectNote(note, dataKey, protect);
|
||||
|
||||
const children = await sql.getFlattenedResults("note_id", "SELECT note_id FROM notes_tree WHERE note_pid = ?", [noteId]);
|
||||
const children = await sql.getFlattenedResults("SELECT note_id FROM notes_tree WHERE note_pid = ?", [noteId]);
|
||||
|
||||
for (const childNoteId of children) {
|
||||
await protectNoteRecursively(childNoteId, dataKey, protect);
|
||||
|
||||
Reference in New Issue
Block a user