diff --git a/src/controllers/departmentController.js b/src/controllers/departmentController.js index 1ec16940..b521787d 100644 --- a/src/controllers/departmentController.js +++ b/src/controllers/departmentController.js @@ -923,7 +923,7 @@ exports.getZonebasedLocations = async (req, reply) => { const getZonesByCitys = async (city) => { try { - const result = await Branch.aggregate([ + const result = await Zone.aggregate([ { $project: { city: { $trim: { input: "$city" } }, // Trim city field in DB