mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	fix(server): edited notes listing automatically generated hidden notes (closes #5683)
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user