edited notes: better sql like statement

This commit is contained in:
contributor 2025-11-10 20:03:59 +02:00
parent a6fc54cb81
commit e883f32f89

View File

@ -159,7 +159,7 @@ function getEditedNotesOnDate(req: Request) {
SELECT noteId FROM notes
WHERE
(notes.dateCreated LIKE :date OR notes.dateModified LIKE :date)
AND (noteId NOT LIKE '_%')
AND (notes.noteId NOT LIKE '%\\_%' ESCAPE '\\')
UNION ALL
SELECT noteId FROM revisions
WHERE revisions.dateCreated LIKE :date