adding few missing isErased = 0 conditions

This commit is contained in:
zadam
2020-12-10 21:56:48 +01:00
parent 0ac42608f7
commit 5010175b84
3 changed files with 5 additions and 4 deletions

View File

@@ -23,7 +23,8 @@ function getRecentChanges(req) {
note_revisions.dateCreated AS date
FROM
note_revisions
JOIN notes USING(noteId)`);
JOIN notes USING(noteId)
WHERE note_revisions.isErased = 0`);
for (const noteRevision of noteRevisions) {
if (noteCacheService.isInAncestor(noteRevision.noteId, ancestorNoteId)) {