mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	simplified new entity ID allocation
This commit is contained in:
		| @@ -17,9 +17,7 @@ class NoteImage extends Entity { | ||||
|     } | ||||
|  | ||||
|     beforeSaving() { | ||||
|         if (!this.noteImageId) { | ||||
|             this.noteImageId = utils.newNoteImageId(); | ||||
|         } | ||||
|         super.beforeSaving(); | ||||
|  | ||||
|         if (!this.isDeleted) { | ||||
|             this.isDeleted = false; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user