master^2
Bhaskar 8 months ago
parent f01882e865
commit a751716853

@ -923,7 +923,7 @@ exports.getZonebasedLocations = async (req, reply) => {
const getZonesByCitys = async (city) => { const getZonesByCitys = async (city) => {
try { try {
const result = await Branch.aggregate([ const result = await Zone.aggregate([
{ {
$project: { $project: {
city: { $trim: { input: "$city" } }, // Trim city field in DB city: { $trim: { input: "$city" } }, // Trim city field in DB

Loading…
Cancel
Save