tango-app-api-infra 3.8.8 → 3.8.10
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
|
@@ -415,9 +415,9 @@ export async function ticketList( req, res ) {
|
|
|
415
415
|
'Duplicates': item?._source?.status === 'closed'? item._source.duplicateACCount : item._source.duplicateCount,
|
|
416
416
|
'Employee/Staff': item?._source?.status === 'closed'? item._source.employeeACCount : item._source.employeeCount,
|
|
417
417
|
'HouseKeeping': item?._source?.status === 'closed'? item._source.houseKeepingACCount : item._source.houseKeepingCount,
|
|
418
|
-
'Junk': item?._source?.status === 'closed'? item._source.junkACCount : item._source.junkCount,
|
|
419
|
-
'Revised Footfall': item?._source?.status === 'closed'? item._source.footfallCount - ( item._source.duplicateACCount + item._source.employeeACCount + item._source.houseKeepingACCount + item._source.junkACCount ) : item._source.footfallCount - ( item._source.duplicateCount + item._source.employeeCount + item._source.houseKeepingCount + item._source.junkCount ),
|
|
420
|
-
'Ticket%': item?._source?.status === 'closed'?`${Math.round( ( ( item._source.duplicateACCount + item._source.employeeACCount + item._source.houseKeepingACCount + item
|
|
418
|
+
'Junk': item?._source?.status === 'closed'? ( item._source.junkACCount || 0 ) : ( item._source.junkCount|| 0 ),
|
|
419
|
+
'Revised Footfall': item?._source?.status === 'closed'? item._source.footfallCount - ( item._source.duplicateACCount + item._source.employeeACCount + item._source.houseKeepingACCount +( item._source.junkACCount || 0 ) ) : item._source.footfallCount - ( item._source.duplicateCount + item._source.employeeCount + item._source.houseKeepingCount + ( item._source.junkCount || 0 ) ),
|
|
420
|
+
'Ticket%': item?._source?.status === 'closed'?`${Math.round( ( ( item._source.duplicateACCount + item._source.employeeACCount + item._source.houseKeepingACCount + ( item?._source?.junkACCount || 0 ) )/ item._source.footfallCount )*100 ).toFixed( 0 )} %` : `${Math.round( ( ( item?._source?.duplicateCount + item?._source?.employeeCount + item?._source?.houseKeepingCount + ( item?._source?.junkCount || 0 ) )/ item?._source?.footfallCount )*100 ).toFixed( 0 )} %`,
|
|
421
421
|
'Status': item._source.status,
|
|
422
422
|
} );
|
|
423
423
|
}
|
|
@@ -977,7 +977,7 @@ export async function sendSqsMessage( inputData, tempId, getStoreType, storeId )
|
|
|
977
977
|
store_date: inputData.dateString.split( '-' ).reverse().join( '-' ),
|
|
978
978
|
bucket_name: '',
|
|
979
979
|
zone_id: 'traffic_zone',
|
|
980
|
-
process_type: '
|
|
980
|
+
process_type: 'live',
|
|
981
981
|
revop_type: 'footfall',
|
|
982
982
|
temp_id: tempId,
|
|
983
983
|
time: Date.now(),
|