tango-app-api-trax 3.2.1-beta-7 → 3.2.1-beta-8
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
|
@@ -2480,7 +2480,11 @@ export async function questionList( req, res ) {
|
|
|
2480
2480
|
if ( question.answerType == 'multiplechoicemultiple' ) {
|
|
2481
2481
|
let checkvalidation = null;
|
|
2482
2482
|
if ( answer.validationAnswer && answer.validationAnswer !='' ) {
|
|
2483
|
-
|
|
2483
|
+
if ( answer.validationType != 'Descriptive Answer' ) {
|
|
2484
|
+
checkvalidation = await signedUrl( { file_path: decodeURIComponent( answer.validationAnswer ), Bucket: bucket.sop } );
|
|
2485
|
+
} else {
|
|
2486
|
+
checkvalidation = answer.validationAnswer;
|
|
2487
|
+
}
|
|
2484
2488
|
}
|
|
2485
2489
|
Multianswer.push( { 'answer': answer.answer, 'no': ansIndex, 'validationAnswer': checkvalidation } );
|
|
2486
2490
|
getchecklist[0].questionAnswers[secIndex].questions[questionIndex].answers[ansIndex].index = ansIndex;
|