mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +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) { | function getEditedNotesOnDate(req: Request) { | ||||||
|     const noteIds = sql.getColumn<string>( |     const noteIds = sql.getColumn<string>(/*sql*/`\ | ||||||
|         ` |  | ||||||
|         SELECT notes.* |         SELECT notes.* | ||||||
|         FROM notes |         FROM notes | ||||||
|         WHERE noteId IN ( |         WHERE noteId IN ( | ||||||
|                 SELECT noteId FROM notes |                 SELECT noteId FROM notes | ||||||
|                 WHERE notes.dateCreated LIKE :date |                 WHERE | ||||||
|                     OR notes.dateModified LIKE :date |                     (notes.dateCreated LIKE :date OR notes.dateModified LIKE :date) | ||||||
|  |                     AND (noteId NOT LIKE '_%') | ||||||
|             UNION ALL |             UNION ALL | ||||||
|                 SELECT noteId FROM revisions |                 SELECT noteId FROM revisions | ||||||
|                 WHERE revisions.dateLastEdited LIKE :date |                 WHERE revisions.dateLastEdited LIKE :date | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user