tango-app-api-trax 3.7.84 → 3.7.86
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
|
@@ -1382,7 +1382,7 @@ export async function insertTimeDelayFlags( req, res ) {
|
|
|
1382
1382
|
checklistName: store.checkListName?.trim(),
|
|
1383
1383
|
submittedBy: '--',
|
|
1384
1384
|
time: '--',
|
|
1385
|
-
domain: `${JSON.parse( process.env.URL ).domain}/manage/trax/flags`,
|
|
1385
|
+
domain: `${JSON.parse( process.env.URL ).domain}/manage/trax/flags?date=${dayjs().format( 'YYYY-MM-DD' )}`,
|
|
1386
1386
|
type: 'delay',
|
|
1387
1387
|
};
|
|
1388
1388
|
const fileContent = fs.readFileSync( path.resolve( path.dirname( '' ) ) + '/src/hbs/flag.hbs', 'utf8' );
|
|
@@ -4763,13 +4763,13 @@ export async function downloadChecklist( req, res ) {
|
|
|
4763
4763
|
question.remarks = question.remarks == null || question.remarks == 'null' ? '' : question.remarks;
|
|
4764
4764
|
question.userAnswer.forEach( ( answer ) => {
|
|
4765
4765
|
if ( answer?.referenceImage?.trim() ) {
|
|
4766
|
-
answer.referenceImage =
|
|
4766
|
+
answer.referenceImage = JSON.parse( process.env.CDNURL )?.TraxAnswerCDN+answer.referenceImage;
|
|
4767
4767
|
}
|
|
4768
4768
|
if ( [ 'Capture Image', 'Capture Video' ].includes( answer.validationType ) && answer?.validationAnswer?.trim() ) {
|
|
4769
|
-
answer.validationAnswer =
|
|
4769
|
+
answer.validationAnswer = JSON.parse( process.env.CDNURL )?.TraxAnswerCDN+answer.validationAnswer;
|
|
4770
4770
|
}
|
|
4771
4771
|
if ( answer?.answer?.trim() && [ 'image', 'descriptiveImage', 'multipleImage', 'image/video', 'video' ].includes( question.answerType ) ) {
|
|
4772
|
-
answer.answer =
|
|
4772
|
+
answer.answer = JSON.parse( process.env.CDNURL )?.TraxAnswerCDN+answer.answer;
|
|
4773
4773
|
}
|
|
4774
4774
|
} );
|
|
4775
4775
|
} );
|