tango-app-api-infra 3.9.5-vms.87 → 3.9.5-vms.88
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
|
@@ -1869,10 +1869,12 @@ export async function ticketApprove( req, res, next ) {
|
|
|
1869
1869
|
const revised = Number( Math.round( ( revisedFootfall / footfallCount ) * 100 || 0 ) );
|
|
1870
1870
|
const tangoReview = Number( getConfig?.footfallDirectoryConfigs?.tangoReview?.split( '%' )[0] );
|
|
1871
1871
|
// If autoclose enabled and revisedPercentage meets/exceeds threshold, close ticket and skip revision
|
|
1872
|
+
logger.info( { revised, tangoReview } );
|
|
1872
1873
|
if (
|
|
1873
1874
|
isAutoCloseEnable === true &&
|
|
1874
1875
|
revisedPercentage >= autoCloseAccuracyValue
|
|
1875
1876
|
) {
|
|
1877
|
+
logger.info( { revisedPercentage, autoCloseAccuracyValue, isAutoCloseEnable } );
|
|
1876
1878
|
record.status = 'Approver-Closed';
|
|
1877
1879
|
// Only keep or modify mappingInfo items with type "review"
|
|
1878
1880
|
if ( Array.isArray( record.mappingInfo ) ) {
|
|
@@ -1941,6 +1943,7 @@ export async function ticketApprove( req, res, next ) {
|
|
|
1941
1943
|
},
|
|
1942
1944
|
);
|
|
1943
1945
|
} else if ( revised < tangoReview ) {
|
|
1946
|
+
logger.info( { revised, tangoReview } );
|
|
1944
1947
|
// If ticket is closed, do not proceed with revision mapping
|
|
1945
1948
|
|
|
1946
1949
|
// Default fallbacks
|
|
@@ -1981,7 +1984,7 @@ export async function ticketApprove( req, res, next ) {
|
|
|
1981
1984
|
reviced: Number( Math.round( ( revisedFootfall / footfallCount ) * 100 || 0 ) ),
|
|
1982
1985
|
count: tempAcc,
|
|
1983
1986
|
revisedDetail: formattedTaggingData,
|
|
1984
|
-
status: '
|
|
1987
|
+
status: 'Under Tango Review',
|
|
1985
1988
|
createdByEmail: req?.user?.email,
|
|
1986
1989
|
createdByUserName: req?.user?.userName,
|
|
1987
1990
|
createdByRole: req?.user?.role,
|
|
@@ -2015,6 +2018,7 @@ export async function ticketApprove( req, res, next ) {
|
|
|
2015
2018
|
record.mappingInfo.push( tangoReviewMapping );
|
|
2016
2019
|
}
|
|
2017
2020
|
} else {
|
|
2021
|
+
logger.info( { msg: '...............1', revised, tangoReview } );
|
|
2018
2022
|
if ( Array.isArray( record.mappingInfo ) ) {
|
|
2019
2023
|
const temp = record.mappingInfo
|
|
2020
2024
|
.filter( ( item ) => item.type === 'approve' )
|