Skip to content

Commit d0a994c

Browse files
committed
fix sql like pattern
1 parent e883f32 commit d0a994c

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