edited notes: better sql like statement (#7681)

This commit is contained in:
Elian Doran 2025-11-10 20:29:25 +02:00 committed by GitHub
commit 5a01f75d67
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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 (noteId NOT LIKE '_%') 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