ashok 9 months ago
commit a59db1056a

@ -793,7 +793,7 @@ const getLocationsByCityAndZone = async (city, zone) => {
matchCondition.zone = zone.trim(); matchCondition.zone = zone.trim();
} }
const result = await Branch.aggregate([ const result = await Zone.aggregate([
{ {
$project: { $project: {
city: { $toLower: { $trim: { input: "$city" } } }, city: { $toLower: { $trim: { input: "$city" } } },

Loading…
Cancel
Save