ashok 2 months ago
commit 5ad2e6b369

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

Loading…
Cancel
Save