tango-app-api-analysis-traffic 3.5.0-alpha.1 → 3.5.0-alpha.3
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
|
@@ -11,7 +11,7 @@ import dayjs from 'dayjs';
|
|
|
11
11
|
import mongoose from 'mongoose';
|
|
12
12
|
const ObjectId = mongoose.Types.ObjectId;
|
|
13
13
|
import { findCamera } from '../services/camera.service.js';
|
|
14
|
-
|
|
14
|
+
import * as taggingServices from '../services/tagging.service.js';
|
|
15
15
|
// Lamda Service Call //
|
|
16
16
|
async function LamdaServiceCall( url, data ) {
|
|
17
17
|
try {
|
|
@@ -1963,9 +1963,14 @@ export const headerZoneV2 = async ( req, res ) => {
|
|
|
1963
1963
|
isDeleted: false,
|
|
1964
1964
|
},
|
|
1965
1965
|
},
|
|
1966
|
-
{ $project: { tagName: 1 } },
|
|
1967
1966
|
];
|
|
1968
1967
|
|
|
1968
|
+
if ( reqestData.clientId == '430' ) {
|
|
1969
|
+
getZoneQuery.push( { $match: { tagName: { $in: [ 'SK-II', 'Clarins', 'Estee Lauder' ] } } } );
|
|
1970
|
+
}
|
|
1971
|
+
|
|
1972
|
+
getZoneQuery.push( { $project: { tagName: 1 } } );
|
|
1973
|
+
// console.log( 'getZoneQuery =>', getZoneQuery );
|
|
1969
1974
|
let getZoneData = await taggingServices.aggregate( getZoneQuery );
|
|
1970
1975
|
if ( getZoneData && getZoneData.length > 0 ) {
|
|
1971
1976
|
return res.sendSuccess( { zoneData: getZoneData } );
|