tango-app-api-analysis-traffic 3.0.0-alpha.10 → 3.0.0-alpha.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-app-api-analysis-traffic",
3
- "version": "3.0.0-alpha.10",
3
+ "version": "3.0.0-alpha.11",
4
4
  "description": "Traffic Analysis",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -405,8 +405,8 @@ export const storesMapV1 = async ( req, res ) => {
405
405
  $and: [
406
406
  { 'storeProfile.latitude': { $exists: true } },
407
407
  { 'storeProfile.latitude': { $gt: 0 } },
408
- { 'storeProfile.latitude': { $exists: true } },
409
- { 'storeProfile.latitude': { $gt: 0 } },
408
+ { 'storeProfile.longitude': { $exists: true } },
409
+ { 'storeProfile.longitude': { $gt: 0 } },
410
410
  ],
411
411
  },
412
412
  },
@@ -417,6 +417,8 @@ export const storesMapV1 = async ( req, res ) => {
417
417
  'storeName': 1,
418
418
  'appId': 1,
419
419
  'storeProfile': 1,
420
+ 'lat': '$storeProfile.latitude',
421
+ 'lng': '$storeProfile.longitude',
420
422
  'spocDetails': { $arrayElemAt: [ '$spocDetails', 0 ] },
421
423
  'businessType': 1,
422
424
  'storeType': 1,