Modlog: Fix bug with note searches

This commit is contained in:
Annika 2021-08-09 14:40:09 -07:00
parent 599d7a677a
commit d3ca242ff7

View File

@ -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 {