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