diff --git a/src/routes/api/note_revisions.js b/src/routes/api/note_revisions.js index 47459dd43..93c792c56 100644 --- a/src/routes/api/note_revisions.js +++ b/src/routes/api/note_revisions.js @@ -120,7 +120,8 @@ function getEditedNotesOnDate(req) { ORDER BY isDeleted LIMIT 50`, {date: req.params.date + '%'}); - const notes = becca.getNotes(noteIds, true); + const notes = becca.getNotes(noteIds, true) + .map(note => note.getPojo()); for (const note of notes) { const notePath = note.isDeleted ? null : beccaService.getNotePath(note.noteId);