tango-app-api-task 3.4.1-activitylog-17 → 3.4.1-activitylog-18
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
|
@@ -1517,7 +1517,7 @@ async function insertPCBulkV3( getCLconfig, checklistId, updatedchecklist, date,
|
|
|
1517
1517
|
element4.streamId = inputBody?.streamId;
|
|
1518
1518
|
}
|
|
1519
1519
|
if ( answerTypechange ) {
|
|
1520
|
-
element4.
|
|
1520
|
+
element4.planoType = 'qrScan';
|
|
1521
1521
|
}
|
|
1522
1522
|
element4.coverage = getCLconfig?.coverage;
|
|
1523
1523
|
assignUserList.push( element4 );
|
|
@@ -3790,16 +3790,18 @@ export async function eyeTesttask( req, res ) {
|
|
|
3790
3790
|
}
|
|
3791
3791
|
question[0].questionReferenceImage = images;
|
|
3792
3792
|
} else {
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3793
|
+
if ( req.files&&req.files.referenceImage ) {
|
|
3794
|
+
let uplaodedImage = await uploadmultiImage( req.files.referenceImage );
|
|
3795
|
+
let imgUrl = decodeURIComponent( uplaodedImage.imgUrl.split( '?' )[0] );
|
|
3796
|
+
let url = imgUrl.split( '/' );
|
|
3797
|
+
if ( url.includes( 'https:' ) || url.includes( 'http:' ) ) {
|
|
3798
|
+
url.splice( 0, 3 );
|
|
3799
|
+
}
|
|
3800
|
+
images.push( url.join( '/' ) );
|
|
3801
3801
|
|
|
3802
|
-
|
|
3802
|
+
question[0].questionReferenceImage = images;
|
|
3803
|
+
}
|
|
3804
|
+
let images = [];
|
|
3803
3805
|
}
|
|
3804
3806
|
|
|
3805
3807
|
if ( inputBody?.answerType === 'image' || inputBody?.answerType === 'descriptiveImage' || inputBody?.answerType === 'multipleImage' ) {
|