mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	simplified updating note content
This commit is contained in:
		| @@ -21,7 +21,7 @@ function updateFile(req) { | ||||
|         return [404, `Note ${noteId} doesn't exist.`]; | ||||
|     } | ||||
|  | ||||
|     noteRevisionService.createNoteRevision(note); | ||||
|     note.saveNoteRevision(); | ||||
|  | ||||
|     note.mime = file.mimetype.toLowerCase(); | ||||
|     note.save(); | ||||
| @@ -30,8 +30,6 @@ function updateFile(req) { | ||||
|  | ||||
|     note.setLabel('originalFileName', file.originalname); | ||||
|  | ||||
|     noteRevisionService.protectNoteRevisions(note); | ||||
|  | ||||
|     return { | ||||
|         uploaded: true | ||||
|     }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user