From 9359f053355cc41ecfa97362302d30264ff19c7a Mon Sep 17 00:00:00 2001 From: zadam Date: Sat, 29 Aug 2020 22:22:24 +0200 Subject: [PATCH] fix "edited notes on a day" for deleted notes --- src/routes/api/note_revisions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }