mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-05-07 04:39:13 -05:00
implemented consistency checks
This commit is contained in:
+1
-1
@@ -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