mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	smaller refactorings continued
This commit is contained in:
		| @@ -4,6 +4,7 @@ const Image = require('../entities/image'); | ||||
| const NoteImage = require('../entities/note_image'); | ||||
| const Branch = require('../entities/branch'); | ||||
| const Label = require('../entities/label'); | ||||
| const RecentNote = require('../entities/recent_note'); | ||||
| const repository = require('../services/repository'); | ||||
|  | ||||
| function createEntityFromRow(row) { | ||||
| @@ -21,6 +22,9 @@ function createEntityFromRow(row) { | ||||
|     else if (row.imageId) { | ||||
|         entity = new Image(row); | ||||
|     } | ||||
|     else if (row.branchId && row.notePath) { | ||||
|         entity = new RecentNote(row); | ||||
|     } | ||||
|     else if (row.branchId) { | ||||
|         entity = new Branch(row); | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user