master^2
Bhaskar 8 months ago
parent 52800b7dc5
commit f01882e865

@ -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