tango-app-api-trax 3.7.62 → 3.7.63
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
|
@@ -664,11 +664,12 @@ export async function sopMobilechecklistQuestionValidatorv1( req, res, next ) {
|
|
|
664
664
|
// question.answers.forEach( ( answer ) => {
|
|
665
665
|
let sectionQuestion = requestSection.filter( ( secQuestion ) => secQuestion.qname == question.oldQname || secQuestion.qname == question.qname );
|
|
666
666
|
if ( sectionQuestion.length ) {
|
|
667
|
-
if ( question.answerType == 'multiplechoicemultiple' || ( question.answerType =='dropdown' && question.allowMultiple ) && ( sectionQuestion[0].Multianswer == null || sectionQuestion[0].Multianswer == '' || !sectionQuestion[0].Multianswer.length ) ) {
|
|
667
|
+
if ( ( question.answerType == 'multiplechoicemultiple' || ( question.answerType =='dropdown' && question.allowMultiple ) ) && ( sectionQuestion[0].Multianswer == null || sectionQuestion[0].Multianswer == '' || !sectionQuestion[0].Multianswer.length ) ) {
|
|
668
668
|
validationCount++;
|
|
669
669
|
} else {
|
|
670
670
|
if ( ![ 'multiplechoicemultiple', 'multipleImage' ].includes( question.answerType ) && ( question.answerType =='dropdown' && !question.allowMultiple ) && ( ( !sectionQuestion[0].linkType && ( sectionQuestion[0].answer == null || sectionQuestion[0].answer == '' ) ) || ( sectionQuestion[0].linkType && sectionQuestion[0].linkquestionenabled && ( sectionQuestion[0].answer == null || sectionQuestion[0].answer == '' ) ) ) ) {
|
|
671
671
|
validationCount++;
|
|
672
|
+
console.log( question.qname );
|
|
672
673
|
}
|
|
673
674
|
}
|
|
674
675
|
} else {
|
|
@@ -4607,6 +4608,7 @@ export async function downloadChecklist( req, res ) {
|
|
|
4607
4608
|
const html = template( { data: checklistDetails } );
|
|
4608
4609
|
pdf.create( html ).toStream( ( err, stream ) => {
|
|
4609
4610
|
if ( err ) {
|
|
4611
|
+
conosle.log( err );
|
|
4610
4612
|
return res.status( 500 ).send( 'Error generating PDF' );
|
|
4611
4613
|
}
|
|
4612
4614
|
|