diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-11-20 17:09:42 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-11-20 17:09:42 +0700 |
| commit | 9576f8250283fe43dd30d527b91f787afb64986c (patch) | |
| tree | 8899fc097936ffad271ab183472256caf88dd330 /src/app/api/location/route.tsx | |
| parent | 0fad493706f21f8d82594590d59900d714b3c4b4 (diff) | |
Fix product and location api not case sensitive
Diffstat (limited to 'src/app/api/location/route.tsx')
| -rw-r--r-- | src/app/api/location/route.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app/api/location/route.tsx b/src/app/api/location/route.tsx index bc4cfff..7139c6d 100644 --- a/src/app/api/location/route.tsx +++ b/src/app/api/location/route.tsx @@ -15,7 +15,7 @@ export async function GET(request: NextRequest) { const locations = await prisma.location.findMany({ where: { companyId, - name: { contains: search ?? '' } + name: { mode: 'insensitive', contains: search ?? '' } }, take: 20 }) |
