diff --git a/src/routes/api/note_revisions.js b/src/routes/api/note_revisions.js index 59af1825f..cdbf36d70 100644 --- a/src/routes/api/note_revisions.js +++ b/src/routes/api/note_revisions.js @@ -138,7 +138,7 @@ function getEditedNotesOnDate(req) { LIMIT 50`, {date: req.params.date + '%'}); for (const note of notes) { - const notePath = noteCacheService.getNotePath(note.noteId); + const notePath = note.isDeleted ? null : noteCacheService.getNotePath(note.noteId); note.notePath = notePath ? notePath.notePath : null; }