tango-app-api-audit 3.4.11-alpha.6 → 3.4.11-alpha.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.4.11-alpha.6",
3
+ "version": "3.4.11-alpha.7",
4
4
  "description": "audit & audit metrics apis",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -998,7 +998,7 @@ export async function getAuditFile( req, res ) {
998
998
  logger.info( { query: query } );
999
999
  const traxInfo = await findOneTraxAuditData( query );
1000
1000
  if ( !traxInfo ) {
1001
- return res.sendError( 'The sorce record not found', 400 );
1001
+ return res.sendError( 'The source record not found', 400 );
1002
1002
  }
1003
1003
  msg =traxInfo?.sqs?.Body;
1004
1004
  break;
@@ -1490,6 +1490,7 @@ export async function saveBinary( req, res ) {
1490
1490
  tempId: inputData.tempId,
1491
1491
  moduleType: inputData.moduleType,
1492
1492
  answer: inputData.answer,
1493
+ inputBucketName: getFilePath?.inputBucketName,
1493
1494
  filePath: getFilePath?.sqs?.Body?.filePath,
1494
1495
  } ),
1495
1496
  };
@@ -4534,8 +4535,8 @@ export async function save( req, res ) {
4534
4535
  }
4535
4536
  const tempId=[];
4536
4537
  if ( inputData.employeeCount > 0 ) {
4537
- for ( let i =0; i<employee.length; i++ ) {
4538
- tempId.push( employee[i].img_id );
4538
+ for ( let i =0; i<inputData?.employee.length; i++ ) {
4539
+ tempId.push( inputData?.employee[i].img_id );
4539
4540
  }
4540
4541
  }
4541
4542
  const sqsProduceQueue = {
@@ -4544,6 +4545,7 @@ export async function save( req, res ) {
4544
4545
  storeId: inputData.storeId,
4545
4546
  fileDate: inputData.fileDate,
4546
4547
  moduleType: inputData.moduleType,
4548
+ inputBucketName: getFilePath?.inputBucketName,
4547
4549
  tempId: tempId,
4548
4550
  count: inputData.employeeCount,
4549
4551
  folderPath: getFilePath?.sqs?.Body?.folderPath,