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