mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 05:28:59 +01: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