add mode: "insensitive"

This commit is contained in:
Kanjana 2025-04-09 11:54:52 +07:00
parent 7e937333dc
commit 743fde5493
20 changed files with 145 additions and 147 deletions

View file

@ -36,8 +36,8 @@ export class NotificationController extends Controller {
AND: [
{
OR: queryOrNot<(typeof where)[]>(query, [
{ title: { contains: query } },
{ detail: { contains: query } },
{ title: { contains: query, mode: "insensitive" } },
{ detail: { contains: query, mode: "insensitive" } },
]),
},
{