From ef735bd9d70956557da8c5dfe6bf4b11258db6fc Mon Sep 17 00:00:00 2001 From: Methapon Metanipat Date: Thu, 5 Sep 2024 10:34:07 +0700 Subject: [PATCH] feat: query also search for passport number --- src/controllers/03-customer-branch-controller.ts | 1 + src/controllers/03-employee-controller.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/controllers/03-customer-branch-controller.ts b/src/controllers/03-customer-branch-controller.ts index ccfc674..f84efac 100644 --- a/src/controllers/03-customer-branch-controller.ts +++ b/src/controllers/03-customer-branch-controller.ts @@ -257,6 +257,7 @@ export class CustomerBranchController extends Controller { { firstNameEN: { contains: query } }, { lastName: { contains: query } }, { lastNameEN: { contains: query } }, + { passportNumber: { contains: query } }, ], AND: { ...filterStatus(status), diff --git a/src/controllers/03-employee-controller.ts b/src/controllers/03-employee-controller.ts index b6ea7e8..e473622 100644 --- a/src/controllers/03-employee-controller.ts +++ b/src/controllers/03-employee-controller.ts @@ -279,6 +279,7 @@ export class EmployeeController extends Controller { { firstNameEN: { contains: query } }, { lastName: { contains: query } }, { lastNameEN: { contains: query } }, + { passportNumber: { contains: query } }, ], AND: { ...filterStatus(status),