tango-app-api-audit 3.5.7-stage.1 → 3.5.7

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-audit",
3
- "version": "3.5.7-stage.1",
3
+ "version": "3.5.7",
4
4
  "description": "audit & audit metrics apis",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -1397,13 +1397,12 @@ export async function save( req, res ) {
1397
1397
  params.Bucket = bucket.auditUploadBucket;
1398
1398
  } else {
1399
1399
  params.Bucket = bucket.masterJson;
1400
- params.Key = `${inputData.storeId}/${inputData.zoneName}/${inputData.fileDate}/${bucket.srcMasterJsonFile}`
1401
1400
  }
1402
1401
  const fileData = await getJsonFileData( params );
1403
1402
 
1404
1403
  if ( fileData?.statusCode ) {
1405
1404
  logger.error( {
1406
- error: `ERROR IN UPLOAD PATH: ${params.Key}`,
1405
+ error: `ERROR IN UPLOAD PATH: ${inputData.storeId}/${inputData.fileDate}/${bucket.masterJsonFile}`,
1407
1406
  type: 'UPLOAD_ERROR',
1408
1407
  } );
1409
1408
  return res.sendError( fileData, 500 );
@@ -1755,7 +1754,7 @@ export async function save( req, res ) {
1755
1754
  const ratio = ( ( storeAuditData.beforeCount - inputData.customerCount ) / storeAuditData.beforeCount );
1756
1755
  if ( ratio < clientData[0].auditConfigs.ratio &&
1757
1756
  inputData.auditType == 'Audit' &&
1758
- inputData.moduleType == 'traffic1'
1757
+ inputData.moduleType == 'traffic'
1759
1758
  ) {
1760
1759
  logger.info(
1761
1760
  `Hit in Reaudit pushing queue Store Id=${inputData.storeId},File Date=${inputData.fileDate}, /n \nQueue Name = ${clientData[0].auditConfigs.queueName}`,