tango-app-api-infra 3.9.5-vms.85 → 3.9.5-vms.86

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-infra",
3
- "version": "3.9.5-vms.85",
3
+ "version": "3.9.5-vms.86",
4
4
  "description": "infra",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -908,7 +908,7 @@ export async function ticketSummary( req, res ) {
908
908
  }
909
909
  inputData.clientId = inputData?.clientId?.split( ',' );
910
910
  // const ticketsApproveFeature = userInfo?.rolespermission?.some( ( f ) => f.featureName === 'FootfallDirectory' && ( f.modules.find( ( m ) => m.name == 'approver' && ( m.isAdd == true || m.isEdit == true ) ) ) );
911
- if ( req?.user?.userType !== 'tango' ) {
911
+ if ( req?.user?.userType === 'tango' ) {
912
912
  switch ( inputData?.tangoType ) {
913
913
  case 'store':
914
914
  const storeQuery = {
@@ -1340,10 +1340,8 @@ export async function ticketSummary( req, res ) {
1340
1340
  break;
1341
1341
  default: '';
1342
1342
  }
1343
- } else if ( req?.user?.userType === 'tango' ) {
1344
- logger.info( { msg: '.........1', ticketsFeature, ticketsApproveFeature } );
1343
+ } else if ( req?.user?.userType !== 'tango' ) {
1345
1344
  if ( ticketsFeature && !ticketsApproveFeature ) {
1346
- logger.info( '.........3' );
1347
1345
  const storeQuery = {
1348
1346
  size: 0,
1349
1347
  query: {
@@ -1553,7 +1551,6 @@ export async function ticketSummary( req, res ) {
1553
1551
  avgAccuracy: ticketAccuracy+'%',
1554
1552
  };
1555
1553
  } else if ( ticketsFeature && ticketsApproveFeature ) {
1556
- logger.info( '.........2' );
1557
1554
  if ( inputData?.permissionType === 'review' ) {
1558
1555
  const storeQuery = {
1559
1556
  size: 0,