tango-app-api-audit 3.4.22 → 3.4.23
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
|
@@ -3626,23 +3626,23 @@ export async function getDetectionAuditFile( req, res ) {
|
|
|
3626
3626
|
const list = await listFileByPath( fetchData );
|
|
3627
3627
|
const folderPath = list.data;
|
|
3628
3628
|
const nextQuery = list.pageToken;
|
|
3629
|
-
const bucketCDN =
|
|
3629
|
+
const bucketCDN = url.traxAuditInput;
|
|
3630
3630
|
if ( folderPath?.length > 0 ) {
|
|
3631
3631
|
for ( let i = 0; i < folderPath.length; i++ ) {
|
|
3632
3632
|
const img = folderPath[i].Key.split( '/' );
|
|
3633
|
-
const image = img[3].split( '.' );
|
|
3633
|
+
const image = inputData.moduleType=='hygiene'?img[4].split( '.' ): img[3].split( '.' );
|
|
3634
3634
|
const indexes = image[0].split( '_' );
|
|
3635
3635
|
const Key = folderPath[i].Key;
|
|
3636
3636
|
const data = `${bucketCDN}${Key}`;// await signedUrl( fetchData );
|
|
3637
3637
|
const mapimg = {
|
|
3638
3638
|
img_path: data,
|
|
3639
3639
|
img_name: inputData.moduleType=='mobile-detection'?`${indexes[0]}-${indexes[3]}` : inputData.moduleType=='hygiene'?`${indexes[2]}-${indexes[3]}`:image[0],
|
|
3640
|
-
img_id: img[3],
|
|
3640
|
+
img_id: inputData.moduleType=='hygiene'? img[4] : img[3],
|
|
3641
3641
|
};
|
|
3642
3642
|
files.push( {
|
|
3643
3643
|
img_path: data,
|
|
3644
3644
|
img_name: inputData.moduleType=='mobile-detection'?`${indexes[0]}-${indexes[3]}`: inputData.moduleType=='hygiene'?`${indexes[2]}-${indexes[3]}`:image[0],
|
|
3645
|
-
img_id: img[3],
|
|
3645
|
+
img_id: inputData.moduleType=='hygiene'? img[4] : img[3],
|
|
3646
3646
|
selected: false,
|
|
3647
3647
|
dropped: false,
|
|
3648
3648
|
singleDetection: false,
|