mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 19:36:12 +01:00
uploading new image revisions, WIP
This commit is contained in:
@@ -16,7 +16,7 @@ async function uploadImage(req) {
|
||||
|
||||
const parentNote = await dateNoteService.getDateNote(req.headers['x-local-date']);
|
||||
|
||||
const {noteId} = await imageService.saveImage(file.buffer, originalName, parentNote.noteId, true);
|
||||
const {noteId} = await imageService.saveImage(parentNote.noteId, file.buffer, originalName, true);
|
||||
|
||||
return {
|
||||
noteId: noteId
|
||||
|
||||
Reference in New Issue
Block a user