mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 03:29:02 +01:00 
			
		
		
		
	fix(server): edited notes listing automatically generated hidden notes (closes #5683)
This commit is contained in:
		
							parent
							
								
									5d0669b464
								
							
						
					
					
						commit
						e94b5ac07a
					
				| @ -152,14 +152,14 @@ function restoreRevision(req: Request) { | ||||
| } | ||||
| 
 | ||||
| function getEditedNotesOnDate(req: Request) { | ||||
|     const noteIds = sql.getColumn<string>( | ||||
|         ` | ||||
|     const noteIds = sql.getColumn<string>(/*sql*/`\ | ||||
|         SELECT notes.* | ||||
|         FROM notes | ||||
|         WHERE noteId IN ( | ||||
|                 SELECT noteId FROM notes | ||||
|                 WHERE notes.dateCreated LIKE :date | ||||
|                     OR notes.dateModified LIKE :date | ||||
|                 WHERE | ||||
|                     (notes.dateCreated LIKE :date OR notes.dateModified LIKE :date) | ||||
|                     AND (noteId NOT LIKE '_%') | ||||
|             UNION ALL | ||||
|                 SELECT noteId FROM revisions | ||||
|                 WHERE revisions.dateLastEdited LIKE :date | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran