mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-27 01:51:34 +08:00 
			
		
		
		
	fix potential bugs that may exist in getRevisions
This commit is contained in:
		
							parent
							
								
									cd547ebdaf
								
							
						
					
					
						commit
						62a884cb5a
					
				| @ -1109,7 +1109,7 @@ class BNote extends AbstractBeccaEntity<BNote> { | ||||
|     } | ||||
| 
 | ||||
|     getRevisions(): BRevision[] { | ||||
|         return sql.getRows<RevisionRow>("SELECT * FROM revisions WHERE noteId = ?", [this.noteId]) | ||||
|         return sql.getRows<RevisionRow>("SELECT * FROM revisions WHERE noteId = ? ORDER BY revisions.utcDateCreated ASC", [this.noteId]) | ||||
|             .map(row => new BRevision(row)); | ||||
|     } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 SiriusXT
						SiriusXT