mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	saving attachments when editing
This commit is contained in:
		| @@ -53,11 +53,11 @@ function createNote(req) { | ||||
|     }; | ||||
| } | ||||
|  | ||||
| function updateNoteContent(req) { | ||||
|     const {content} = req.body; | ||||
| function updateNoteData(req) { | ||||
|     const {content, attachments} = req.body; | ||||
|     const {noteId} = req.params; | ||||
|  | ||||
|     return noteService.updateNoteContent(noteId, content); | ||||
|     return noteService.updateNoteData(noteId, content, attachments); | ||||
| } | ||||
|  | ||||
| function deleteNote(req) { | ||||
| @@ -327,7 +327,7 @@ function forceSaveNoteRevision(req) { | ||||
|  | ||||
| module.exports = { | ||||
|     getNote, | ||||
|     updateNoteContent, | ||||
|     updateNoteData, | ||||
|     deleteNote, | ||||
|     undeleteNote, | ||||
|     createNote, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user