mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	fix ordering
This commit is contained in:
		| @@ -57,6 +57,7 @@ async function loginToProtectedSession(req) { | |||||||
|  |  | ||||||
|     const protectedSessionId = protectedSessionService.setDataKey(decryptedDataKey); |     const protectedSessionId = protectedSessionService.setDataKey(decryptedDataKey); | ||||||
|  |  | ||||||
|  |     // this is set here so that event handlers have access to the protected session | ||||||
|     cls.namespace.set('protectedSessionId', protectedSessionId); |     cls.namespace.set('protectedSessionId', protectedSessionId); | ||||||
|  |  | ||||||
|     eventService.emit(eventService.ENTER_PROTECTED_SESSION); |     eventService.emit(eventService.ENTER_PROTECTED_SESSION); | ||||||
|   | |||||||
| @@ -37,7 +37,7 @@ async function getTree() { | |||||||
|               JOIN tree ON branches.parentNoteId = tree.noteId |               JOIN tree ON branches.parentNoteId = tree.noteId | ||||||
|               WHERE tree.isExpanded = 1 AND branches.isDeleted = 0 |               WHERE tree.isExpanded = 1 AND branches.isDeleted = 0 | ||||||
|           ) |           ) | ||||||
|         SELECT branches.* FROM tree JOIN branches USING(noteId)`); |         SELECT branches.* FROM tree JOIN branches USING(noteId) ORDER BY branches.notePosition`); | ||||||
|  |  | ||||||
|     const noteIds = branches.map(b => b.noteId); |     const noteIds = branches.map(b => b.noteId); | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user