fix "edited notes on a day" for deleted notes

This commit is contained in:
zadam 2020-08-29 22:22:24 +02:00
parent 7fb22d41a0
commit 9359f05335

View File

@ -138,7 +138,7 @@ function getEditedNotesOnDate(req) {
LIMIT 50`, {date: req.params.date + '%'}); LIMIT 50`, {date: req.params.date + '%'});
for (const note of notes) { 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; note.notePath = notePath ? notePath.notePath : null;
} }