tango-app-api-audit 3.4.3-alpha.5 → 3.4.3-alpha.6

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.3-alpha.5",
3
+ "version": "3.4.3-alpha.6",
4
4
  "description": "audit & audit metrics apis",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -337,13 +337,13 @@ import { updateOneEmpDetectionOutput } from '../service/empDetectionOutput.servi
337
337
  // const data = await signedUrl( fetchData );
338
338
  // const mapimg = {
339
339
  // img_path: data,
340
- // img_name: image[0],
341
- // img_id: indexes[1],
340
+ // img_name: inputData.moduleType=='mobile-detection'?`${indexes[0]}-${indexes[3]}` :image[0],
341
+ // img_id: img[3],
342
342
  // };
343
343
  // files.push( {
344
344
  // img_path: data,
345
- // img_name: image[0],
346
- // img_id: indexes[1],
345
+ // img_name: inputData.moduleType=='mobile-detection'?`${indexes[0]}-${indexes[3]}` :image[0],
346
+ // img_id: img[3],
347
347
  // selected: false,
348
348
  // dropped: false,
349
349
  // count: 1,
@@ -3815,13 +3815,13 @@ export async function getDetectionAuditFile( req, res ) {
3815
3815
  const data = await signedUrl( fetchData );
3816
3816
  const mapimg = {
3817
3817
  img_path: data,
3818
- img_name: image[0],
3819
- img_id: indexes[1],
3818
+ img_name: inputData.moduleType=='mobile-detection'?`${indexes[0]}-${indexes[3]}` :image[0],
3819
+ img_id: img[3],
3820
3820
  };
3821
3821
  files.push( {
3822
3822
  img_path: data,
3823
- img_name: image[0],
3824
- img_id: indexes[1],
3823
+ img_name: inputData.moduleType=='mobile-detection'?`${indexes[0]}-${indexes[3]}` :image[0],
3824
+ img_id: img[3],
3825
3825
  selected: false,
3826
3826
  dropped: false,
3827
3827
  count: 1,