tango-app-api-infra 3.9.5-vms.87 → 3.9.5-vms.89

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.87",
3
+ "version": "3.9.5-vms.89",
4
4
  "description": "infra",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -1730,6 +1730,16 @@ export async function ticketApprove( req, res, next ) {
1730
1730
  'dateString': inputData.dateString,
1731
1731
  },
1732
1732
  },
1733
+ {
1734
+ term: {
1735
+ 'isParent': false,
1736
+ },
1737
+ },
1738
+ {
1739
+ term: {
1740
+ isChecked: true,
1741
+ },
1742
+ },
1733
1743
  ],
1734
1744
  },
1735
1745
  },
@@ -1869,10 +1879,12 @@ export async function ticketApprove( req, res, next ) {
1869
1879
  const revised = Number( Math.round( ( revisedFootfall / footfallCount ) * 100 || 0 ) );
1870
1880
  const tangoReview = Number( getConfig?.footfallDirectoryConfigs?.tangoReview?.split( '%' )[0] );
1871
1881
  // If autoclose enabled and revisedPercentage meets/exceeds threshold, close ticket and skip revision
1882
+ logger.info( { revised, tangoReview } );
1872
1883
  if (
1873
1884
  isAutoCloseEnable === true &&
1874
1885
  revisedPercentage >= autoCloseAccuracyValue
1875
1886
  ) {
1887
+ logger.info( { revisedPercentage, autoCloseAccuracyValue, isAutoCloseEnable } );
1876
1888
  record.status = 'Approver-Closed';
1877
1889
  // Only keep or modify mappingInfo items with type "review"
1878
1890
  if ( Array.isArray( record.mappingInfo ) ) {
@@ -1941,6 +1953,7 @@ export async function ticketApprove( req, res, next ) {
1941
1953
  },
1942
1954
  );
1943
1955
  } else if ( revised < tangoReview ) {
1956
+ logger.info( { revised, tangoReview } );
1944
1957
  // If ticket is closed, do not proceed with revision mapping
1945
1958
 
1946
1959
  // Default fallbacks
@@ -1981,7 +1994,7 @@ export async function ticketApprove( req, res, next ) {
1981
1994
  reviced: Number( Math.round( ( revisedFootfall / footfallCount ) * 100 || 0 ) ),
1982
1995
  count: tempAcc,
1983
1996
  revisedDetail: formattedTaggingData,
1984
- status: 'Closed',
1997
+ status: 'Under Tango Review',
1985
1998
  createdByEmail: req?.user?.email,
1986
1999
  createdByUserName: req?.user?.userName,
1987
2000
  createdByRole: req?.user?.role,
@@ -2015,6 +2028,7 @@ export async function ticketApprove( req, res, next ) {
2015
2028
  record.mappingInfo.push( tangoReviewMapping );
2016
2029
  }
2017
2030
  } else {
2031
+ logger.info( { msg: '...............1', revised, tangoReview } );
2018
2032
  if ( Array.isArray( record.mappingInfo ) ) {
2019
2033
  const temp = record.mappingInfo
2020
2034
  .filter( ( item ) => item.type === 'approve' )