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([ {