tango-app-api-trax 3.4.0-beta-1 → 3.4.0-beta-2
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
|
@@ -323,7 +323,7 @@ export async function startChecklistv1( req, res ) {
|
|
|
323
323
|
if ( !getchecklist[0].redoStatus ) {
|
|
324
324
|
await processedchecklist.updateOne( updateQuery, { questionAnswers: getchecklist[0].questionAnswers } );
|
|
325
325
|
}
|
|
326
|
-
|
|
326
|
+
getchecklist[0].questionAnswers.forEach( ( section ) => {
|
|
327
327
|
section.questions.forEach( async ( question ) => {
|
|
328
328
|
if ( question.questionReferenceImage && question.questionReferenceImage!='' ) {
|
|
329
329
|
question.questionReferenceImage = JSON.parse( process.env.CDNURL )?.TraxAnswerCDN + question.questionReferenceImage;
|
|
@@ -3429,7 +3429,7 @@ export async function questionListv1( req, res ) {
|
|
|
3429
3429
|
getchecklist[index].questionAnswers[secIndex].questions = questions;
|
|
3430
3430
|
}
|
|
3431
3431
|
}
|
|
3432
|
-
if ( !getchecklist[0].redoStatus ) {
|
|
3432
|
+
if ( !getchecklist[0].redoStatus && getchecklist[0].checklistStatus != 'submit' ) {
|
|
3433
3433
|
await processedchecklist.updateOne( { _id: requestData.processedcheckListId }, { questionAnswers: getchecklist[0].questionAnswers } );
|
|
3434
3434
|
}
|
|
3435
3435
|
|