From ddc5a9a037727237414d05e55c90da95fb147d1d Mon Sep 17 00:00:00 2001 From: Methapon Metanipat Date: Thu, 24 Oct 2024 09:53:36 +0700 Subject: [PATCH] feat: search customer now cover customer name --- src/controllers/03-customer-controller.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/controllers/03-customer-controller.ts b/src/controllers/03-customer-controller.ts index 0bfdbc4..2c37638 100644 --- a/src/controllers/03-customer-controller.ts +++ b/src/controllers/03-customer-controller.ts @@ -168,6 +168,7 @@ export class CustomerController extends Controller { OR: query ? [ { branch: { some: { namePrefix: { contains: query } } } }, + { branch: { some: { customerName: { contains: query } } } }, { branch: { some: { firstName: { contains: query } } } }, { branch: { some: { firstNameEN: { contains: query } } } }, { branch: { some: { lastName: { contains: query } } } },