mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	note cache fixes for created notes
This commit is contained in:
		| @@ -109,11 +109,17 @@ async function addImagesToNote(images, note, content) { | ||||
|  | ||||
|             const {note: imageNote, url} = await imageService.saveImage(note.noteId, buffer, filename, true); | ||||
|  | ||||
|             await new Attribute({ | ||||
|                 noteId: imageNote.noteId, | ||||
|                 type: 'label', | ||||
|                 name: 'hideInAutocomplete' | ||||
|             }).save(); | ||||
|  | ||||
|             await new Attribute({ | ||||
|                 noteId: note.noteId, | ||||
|                 type: 'relation', | ||||
|                 value: imageNote.noteId, | ||||
|                 name: 'imageLink' | ||||
|                 name: 'imageLink', | ||||
|                 value: imageNote.noteId | ||||
|             }).save(); | ||||
|  | ||||
|             console.log(`Replacing ${imageId} with ${url}`); | ||||
| @@ -155,4 +161,4 @@ module.exports = { | ||||
|     addClipping, | ||||
|     openNote, | ||||
|     handshake | ||||
| }; | ||||
| }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user