fix sql like pattern

This commit is contained in:
contributor
2025-11-10 20:15:08 +02:00
parent e883f32f89
commit d0a994c102

View File

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