mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-20 10:25:43 -04:00
lint
This commit is contained in:
parent
ab8fa36a25
commit
6130caab11
@ -29,8 +29,8 @@ export default defineEventHandler(async (event) => {
|
||||
if (typeof query.filter === 'string') {
|
||||
conditions.push(SQL`
|
||||
(
|
||||
lower(u.username) LIKE ${'%' + query.filter.toLowerCase() + '%'}
|
||||
OR lower(u.email) LIKE ${'%' + query.filter.toLowerCase() + '%'}
|
||||
lower(u.username) LIKE ${`%${query.filter.toLowerCase()}%`}
|
||||
OR lower(u.email) LIKE ${`%${query.filter.toLowerCase()}%`}
|
||||
)
|
||||
`);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user