tango-app-api-trax 3.9.27 → 3.9.29
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
|
@@ -1765,6 +1765,7 @@ export async function sopMobilechecklistMultiSectionFormatterv2( req, res, next
|
|
|
1765
1765
|
} else {
|
|
1766
1766
|
if ( qaans[k].validationType == 'Capture Multiple Image with description' ) {
|
|
1767
1767
|
qaans[k]['validationImage']=[];
|
|
1768
|
+
qaans[k]['validationVideo']=[];
|
|
1768
1769
|
if ( requestSection[i].validationImage.length ) {
|
|
1769
1770
|
for ( let image of requestSection[i].validationImage ) {
|
|
1770
1771
|
let validationAnswer = decodeURIComponent( image.split( '?' )[0] );
|
|
@@ -4261,10 +4262,15 @@ export async function questionList( req, res ) {
|
|
|
4261
4262
|
}
|
|
4262
4263
|
if ( userAns.validationType == 'Capture Multiple Image with description' ) {
|
|
4263
4264
|
let imageAnswers = userAns.validationImage;
|
|
4264
|
-
|
|
4265
|
+
getchecklist[0].questionAnswers[secIndex].questions[questionIndex].userAnswer[userAnsIndex].validationImage = [];
|
|
4265
4266
|
for ( let image of imageAnswers ) {
|
|
4266
4267
|
getchecklist[0].questionAnswers[secIndex].questions[questionIndex].userAnswer[userAnsIndex].validationImage.push( `${cdnurl.TraxAnswerCDN}${image}` );
|
|
4267
4268
|
}
|
|
4269
|
+
let videoAnswer = userAns.validationVideo;
|
|
4270
|
+
getchecklist[0].questionAnswers[secIndex].questions[questionIndex].userAnswer[userAnsIndex].validationVideo = [];
|
|
4271
|
+
for ( let image of videoAnswer ) {
|
|
4272
|
+
getchecklist[0].questionAnswers[secIndex].questions[questionIndex].userAnswer[userAnsIndex].validationVideo.push( `${cdnurl.TraxAnswerCDN}${image}` );
|
|
4273
|
+
}
|
|
4268
4274
|
}
|
|
4269
4275
|
if ( [ 'image', 'descriptiveImage', 'video' ].includes( question.answerType ) && userAns.answer != '' ) {
|
|
4270
4276
|
getchecklist[0].questionAnswers[secIndex].questions[questionIndex].userAnswer[userAnsIndex].answer =`${cdnurl.TraxAnswerCDN}${userAns.answer}`;
|