mirror of
https://github.com/zadam/trilium.git
synced 2025-10-31 18:36:30 +01:00
yet another refactoring of working with note's payload/content
This commit is contained in:
@@ -51,7 +51,7 @@ async function downloadNoteFile(noteId, res) {
|
||||
res.setHeader('Content-Disposition', utils.getContentDisposition(fileName));
|
||||
res.setHeader('Content-Type', note.mime);
|
||||
|
||||
res.send((await note.getNoteContent()).content);
|
||||
res.send(await note.getContent());
|
||||
}
|
||||
|
||||
async function downloadFile(req, res) {
|
||||
|
||||
Reference in New Issue
Block a user