mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	smaller refactorings continued
This commit is contained in:
		| @@ -1,5 +1,6 @@ | ||||
| const Note = require('../entities/note'); | ||||
| const NoteRevision = require('../entities/note_revision'); | ||||
| const Image = require('../entities/image'); | ||||
| const NoteImage = require('../entities/note_image'); | ||||
| const Branch = require('../entities/branch'); | ||||
| const Label = require('../entities/label'); | ||||
| @@ -17,6 +18,9 @@ function createEntityFromRow(row) { | ||||
|     else if (row.noteImageId) { | ||||
|         entity = new NoteImage(row); | ||||
|     } | ||||
|     else if (row.imageId) { | ||||
|         entity = new Image(row); | ||||
|     } | ||||
|     else if (row.branchId) { | ||||
|         entity = new Branch(row); | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user