From 27d3ce6573d9be857a4069ed153cf339079d1611 Mon Sep 17 00:00:00 2001 From: Kanjana Date: Thu, 17 Apr 2025 16:21:05 +0700 Subject: [PATCH] change whereDateQuery in branch --- src/controllers/01-branch-controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/01-branch-controller.ts b/src/controllers/01-branch-controller.ts index 003c4cd..da4c958 100644 --- a/src/controllers/01-branch-controller.ts +++ b/src/controllers/01-branch-controller.ts @@ -319,13 +319,13 @@ export class BranchController extends Controller { { telephoneNo: { contains: query, mode: "insensitive" } }, ...whereAddressQuery(query), ], + ...whereDateQuery(startDate, endDate), }, include: { province: true, district: true, subDistrict: true, }, - ...whereDateQuery(startDate, endDate), orderBy: { code: "asc" }, } : false,