tango-app-api-analysis-traffic 3.0.0-alpha.38 → 3.0.0-alpha.39

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.38",
3
+ "version": "3.0.0-alpha.39",
4
4
  "description": "Traffic Analysis",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -823,6 +823,7 @@ export async function headerClustersV2( req, res ) {
823
823
  }
824
824
  } else {
825
825
  if ( getUserType == 'tango' ) {
826
+ console.log( requestData.clientId );
826
827
  clusterNames = await getclusterList( requestData.clientId, getUserType, getRole, req );
827
828
  console.log( clusterNames );
828
829
  } else if ( getUserType == 'client' ) {
@@ -1527,7 +1528,7 @@ async function getLocationStores( userClientId, cityList, req ) {
1527
1528
  return false;
1528
1529
  }
1529
1530
  }
1530
- async function getclusterList( userClientId, getUserType, req ) {
1531
+ async function getclusterList( userClientId, getUserType, getRole, req ) {
1531
1532
  try {
1532
1533
  if ( userClientId && userClientId !='' ) {
1533
1534
  let filter = [
@@ -1536,7 +1537,6 @@ async function getclusterList( userClientId, getUserType, req ) {
1536
1537
  if ( req.body.assignedStores&&req.body.assignedStores.length>0 ) {
1537
1538
  filter.push( { 'stores.storeId': { $in: req.body.assignedStores } } );
1538
1539
  }
1539
- console.log( req.user.email );
1540
1540
  if ( getUserType == 'client'&&getRole!='superadmin' ) {
1541
1541
  filter.push( { 'Teamlead.email': req.user.email } );
1542
1542
  }