tango-app-api-audit 3.6.42-eyetest-dynamicization.0 → 3.6.42-eyetest-dynamicization.2

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.6.42-eyetest-dynamicization.0",
3
+ "version": "3.6.42-eyetest-dynamicization.2",
4
4
  "description": "audit & audit metrics apis",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -29,7 +29,7 @@
29
29
  "nodemon": "^3.1.3",
30
30
  "swagger-ui-express": "^5.0.1",
31
31
  "tango-api-schema": "^2.5.27",
32
- "tango-app-api-middleware": "^3.6.14",
32
+ "tango-app-api-middleware": "^3.6.15",
33
33
  "winston": "^3.13.0",
34
34
  "winston-daily-rotate-file": "^5.0.0"
35
35
  },
@@ -482,6 +482,7 @@ export async function viewFile( req, res ) {
482
482
  file_path: getData?.filePath,
483
483
  Bucket: fileDate > configDate ? inputBucketName: inputOldBucketName,
484
484
  key: fileDate > configDate ?'akamai' : 'aws',
485
+ type: getData?.type,
485
486
  };
486
487
  const getSignedUrl = await signedUrl( params );
487
488
  logger.info( { mesagee: 'signedurl', getSignedUrl: getSignedUrl, params: params } );
@@ -664,6 +665,7 @@ export async function getFile( req, res ) {
664
665
  file_path: getData?.filePath,
665
666
  Bucket: fileDate > configDate ? inputBucketName: inputOldBucketName,
666
667
  key: fileDate > configDate ?'akamai' : 'aws',
668
+ type: getData?.type,
667
669
  };
668
670
  const getSignedUrl = await signedUrl( params );
669
671
  logger.info( { mesagee: 'signedurl', getSignedUrl: getSignedUrl, params: params } );
@@ -775,7 +777,9 @@ export async function save( req, res ) {
775
777
  const inputData = req.body;
776
778
  const openSearch = JSON.parse( process.env.OPENSEARCH );
777
779
  const ses = JSON.parse( process.env.SES );
780
+ const bucket = JSON.parse( process.env.BUCKET );
778
781
  // const url = JSON.parse( process.env.URL );
782
+ const updatedDate = process.env.EYE_TEST_UPDATED_DATE;
779
783
 
780
784
  let searchFilter =[
781
785
  {
@@ -937,6 +941,7 @@ export async function save( req, res ) {
937
941
  file_path: inputUpdatedData?._source?.filePath,
938
942
  Bucket: fileDate > configDate ? inputBucketName: inputOldBucketName,
939
943
  key: fileDate > configDate ?'akamai' : 'aws',
944
+ type: inputUpdatedData?._source?.type,
940
945
  };
941
946
  const getSignedUrl = await signedUrl( params );
942
947
  logger.info( { mesagee: 'signedurl', getSignedUrl: getSignedUrl, params: params } );