fix note_reordering not updating note cache

This commit is contained in:
zadam
2021-02-20 21:28:22 +01:00
parent 7a6bb81345
commit 081b8b126a
2 changed files with 7 additions and 0 deletions

View File

@@ -135,6 +135,10 @@ function getTree(req) {
}
}
if (!(subTreeNoteId in noteCache.notes)) {
return [404, `Note ${subTreeNoteId} not found in the cache`];
}
collect(noteCache.notes[subTreeNoteId]);
return getNotesAndBranchesAndAttributes(collectedNoteIds);