mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	smaller refactorings (mostly entitization)
This commit is contained in:
		| @@ -58,7 +58,7 @@ async function createNewNote(parentNoteId, noteOpts) { | ||||
|         mime: noteOpts.mime ? noteOpts.mime : 'text/html' | ||||
|     }); | ||||
|  | ||||
|     await repository.updateEntity(note); | ||||
|     await note.save(); | ||||
|  | ||||
|     const branch = new Branch({ | ||||
|         branchId: utils.newBranchId(), | ||||
| @@ -69,12 +69,13 @@ async function createNewNote(parentNoteId, noteOpts) { | ||||
|         isDeleted: 0 | ||||
|     }); | ||||
|  | ||||
|     await repository.updateEntity(branch); | ||||
|     await branch.save(); | ||||
|  | ||||
|     return { | ||||
|         noteId: note.noteId, | ||||
|         note, | ||||
|         branchId: branch.branchId, | ||||
|         note | ||||
|         branch | ||||
|     }; | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user