From 0267a5aa61453f5e2ae7f4dcb24aa1b664b7c445 Mon Sep 17 00:00:00 2001 From: Bhaskar Date: Mon, 11 Aug 2025 12:49:37 +0530 Subject: [PATCH] changes --- src/controllers/departmentController.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/controllers/departmentController.js b/src/controllers/departmentController.js index 32c06500..4038e34c 100644 --- a/src/controllers/departmentController.js +++ b/src/controllers/departmentController.js @@ -896,9 +896,9 @@ const getLocationsByCityZoneOffice = async (city, zone, officeName) => { } // Office name filter - // if (officeName && officeName.trim().toUpperCase() !== "ALL") { - // matchCondition.officeName = { $regex: `^${officeName.trim()}$`, $options: "i" }; - // } + if (officeName && officeName.trim().toUpperCase() !== "ALL") { + matchCondition.officeName = { $regex: `^${officeName.trim()}$`, $options: "i" }; + } const result = await Zone.aggregate([ {