Skip to content

Commit e883f32

Browse files
committed
edited notes: better sql like statement
1 parent a6fc54c commit e883f32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/server/src/routes/api/revisions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ function getEditedNotesOnDate(req: Request) {
159159
SELECT noteId FROM notes
160160
WHERE
161161
(notes.dateCreated LIKE :date OR notes.dateModified LIKE :date)
162-
AND (noteId NOT LIKE '_%')
162+
AND (notes.noteId NOT LIKE '%\\_%' ESCAPE '\\')
163163
UNION ALL
164164
SELECT noteId FROM revisions
165165
WHERE revisions.dateCreated LIKE :date

0 commit comments

Comments
 (0)