note revisions for images, WIP

This commit is contained in:
zadam
2019-11-08 23:09:57 +01:00
parent 712f67e983
commit 58a857cf79
6 changed files with 44 additions and 5 deletions

View File

@@ -18,6 +18,10 @@ async function getNoteRevision(req) {
await noteRevision.getContent();
if (noteRevision.content && ['file', 'image'].includes(noteRevision.type)) {
noteRevision.content = noteRevision.content.toString('base64');
}
return noteRevision;
}