From d3ca242ff7e299deaeb511faf2cfb36f8dbfff3a Mon Sep 17 00:00:00 2001 From: Annika Date: Mon, 9 Aug 2021 14:40:09 -0700 Subject: [PATCH] Modlog: Fix bug with note searches --- server/modlog/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/modlog/index.ts b/server/modlog/index.ts index 9537e115e4..0a95342522 100644 --- a/server/modlog/index.ts +++ b/server/modlog/index.ts @@ -445,7 +445,7 @@ export class Modlog { for (const noteSearch of search.note) { const tester = noteSearch.isExact ? `= ?` : `LIKE ?`; - const args = [noteSearch.isExact ? noteSearch + '%' : `%${noteSearch}%`]; + const args = [noteSearch.isExact ? noteSearch.search + '%' : `%${noteSearch.search}%`]; if (noteSearch.isExclusion) { ands.push({query: `note ${noteSearch.isExact ? '!' : 'NOT '}${tester}`, args}); } else {