tango-app-api-trax 3.4.1-alpha-18 → 3.4.1-alpha-20
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
|
@@ -1342,9 +1342,7 @@ export async function sopMobilechecklistMultiSectionFormatterv2( req, res, next
|
|
|
1342
1342
|
structure.parentanswer = requestSection[i].parentanswer;
|
|
1343
1343
|
structure.questionReferenceImage = qaAnswers[j].questionReferenceImage;
|
|
1344
1344
|
structure.descriptivetype = qaAnswers[j].descriptivetype;
|
|
1345
|
-
structure.uniqueNo = requestSection[i].uniqueNo;
|
|
1346
|
-
// qaAnswers[j].nestedQuestion = requestSection[i]?.nestedlinkedQuestion;
|
|
1347
|
-
// structure.parentQuestion = requestSection[i]?.parentQuestion || qaAnswers[j].qno;
|
|
1345
|
+
structure.uniqueNo = parseInt( requestSection[i].uniqueNo );
|
|
1348
1346
|
structure.oldQname = qaAnswers[j]?.oldQname || qaAnswers[j].qname;
|
|
1349
1347
|
if ( qaAnswers[j]?.taskId ) {
|
|
1350
1348
|
structure.taskId = qaAnswers[j]?.taskId;
|
|
@@ -1402,10 +1400,7 @@ export async function sopMobilechecklistMultiSectionFormatterv2( req, res, next
|
|
|
1402
1400
|
structure.parentanswer = requestSection[i].parentanswer;
|
|
1403
1401
|
structure.questionReferenceImage = qaAnswers[j].questionReferenceImage;
|
|
1404
1402
|
structure.descriptivetype = qaAnswers[j].descriptivetype;
|
|
1405
|
-
structure.uniqueNo = requestSection[i].uniqueNo;
|
|
1406
|
-
// structure.uniqueqno = parseInt( requestSection[i]?.uniqueqno );
|
|
1407
|
-
// structure.nestedlinkedQuestion = requestSection[i]?.nestedlinkedQuestion;
|
|
1408
|
-
// structure.parentQuestion = requestSection[i]?.parentQuestion || qaAnswers[j].qno;
|
|
1403
|
+
structure.uniqueNo = parseInt( requestSection[i].uniqueNo );
|
|
1409
1404
|
structure.oldQname = qaAnswers[j]?.oldQname || qaAnswers[j].qname;
|
|
1410
1405
|
if ( qaAnswers[j]?.taskId ) {
|
|
1411
1406
|
structure.taskId = qaAnswers[j]?.taskId;
|
|
@@ -1462,11 +1457,8 @@ export async function sopMobilechecklistMultiSectionFormatterv2( req, res, next
|
|
|
1462
1457
|
structure.parentanswer = requestSection[i].parentanswer;
|
|
1463
1458
|
structure.questionReferenceImage = qaAnswers[j].questionReferenceImage;
|
|
1464
1459
|
structure.descriptivetype = qaAnswers[j].descriptivetype;
|
|
1465
|
-
structure.uniqueNo = requestSection[i].uniqueNo;
|
|
1466
|
-
// structure.parentQuestion = requestSection[i]?.parentQuestion || qaAnswers[j].qno;
|
|
1460
|
+
structure.uniqueNo = parseInt( requestSection[i].uniqueNo );
|
|
1467
1461
|
structure.oldQname = qaAnswers[j]?.oldQname || qaAnswers[j].qname;
|
|
1468
|
-
// structure.uniqueqno = parseInt( requestSection[i]?.uniqueqno );
|
|
1469
|
-
// structure.nestedlinkedQuestion = requestSection[i]?.nestedlinkedQuestion;
|
|
1470
1462
|
if ( qaAnswers[j]?.taskId ) {
|
|
1471
1463
|
structure.taskId = qaAnswers[j]?.taskId;
|
|
1472
1464
|
structure.task = true;
|
|
@@ -1527,10 +1519,7 @@ export async function sopMobilechecklistMultiSectionFormatterv2( req, res, next
|
|
|
1527
1519
|
structure.parentanswer = requestSection[i].parentanswer;
|
|
1528
1520
|
structure.questionReferenceImage = qaAnswers[j].questionReferenceImage;
|
|
1529
1521
|
structure.descriptivetype = qaAnswers[j].descriptivetype;
|
|
1530
|
-
structure.uniqueNo = requestSection[i].uniqueNo;
|
|
1531
|
-
// structure.uniqueqno = parseInt( requestSection[i]?.uniqueqno );
|
|
1532
|
-
// structure.nestedlinkedQuestion = requestSection[i]?.nestedlinkedQuestion;
|
|
1533
|
-
// structure.parentQuestion = requestSection[i]?.parentQuestion || qaAnswers[j].qno;
|
|
1522
|
+
structure.uniqueNo = parseInt( requestSection[i].uniqueNo );
|
|
1534
1523
|
structure.oldQname = qaAnswers[j]?.oldQname || qaAnswers[j].qname;
|
|
1535
1524
|
if ( qaAnswers[j]?.taskId ) {
|
|
1536
1525
|
structure.taskId = qaAnswers[j]?.taskId;
|
|
@@ -1590,10 +1579,7 @@ export async function sopMobilechecklistMultiSectionFormatterv2( req, res, next
|
|
|
1590
1579
|
structure.parentanswer = requestSection[i].parentanswer;
|
|
1591
1580
|
structure.questionReferenceImage = qaAnswers[j].questionReferenceImage;
|
|
1592
1581
|
structure.descriptivetype = qaAnswers[j].descriptivetype;
|
|
1593
|
-
structure.uniqueNo = requestSection[i].uniqueNo;
|
|
1594
|
-
// structure.uniqueqno = parseInt( requestSection[i]?.uniqueqno );
|
|
1595
|
-
// structure.nestedlinkedQuestion = requestSection[i]?.nestedlinkedQuestion;
|
|
1596
|
-
// structure.parentQuestion = requestSection[i]?.parentQuestion || qaAnswers[j].qno;
|
|
1582
|
+
structure.uniqueNo = parseInt( requestSection[i].uniqueNo );
|
|
1597
1583
|
structure.oldQname = qaAnswers[j]?.oldQname || qaAnswers[j].qname;
|
|
1598
1584
|
if ( qaAnswers[j]?.taskId ) {
|
|
1599
1585
|
structure.taskId = qaAnswers[j]?.taskId;
|
|
@@ -3249,13 +3249,13 @@ async function insertPCBulkV4( getCLconfig, checklistId, currentdate, updatedche
|
|
|
3249
3249
|
sectionList.push( { sectionName: section.sectionName, oldName: section.sectionOldName, question: question, type: 'edit' } );
|
|
3250
3250
|
} else {
|
|
3251
3251
|
modifiedCount++;
|
|
3252
|
-
sectionList.push( {
|
|
3252
|
+
sectionList.push( { section: section, type: 'add' } );
|
|
3253
3253
|
}
|
|
3254
3254
|
}
|
|
3255
3255
|
// getsubmitDetails[0].questionAnswers = sectionList;
|
|
3256
3256
|
sectionList.forEach( ( sec ) => {
|
|
3257
3257
|
if ( sec.type == 'add' ) {
|
|
3258
|
-
getsubmitDetails[0].questionAnswers.push( sec );
|
|
3258
|
+
getsubmitDetails[0].questionAnswers.push( sec.section );
|
|
3259
3259
|
} else {
|
|
3260
3260
|
sec.question.forEach( ( qn ) => {
|
|
3261
3261
|
let sectionDetails = getsubmitDetails[0].questionAnswers.findIndex( ( section ) => section.sectionName == sec?.oldName || section.sectionName == sec.sectionName );
|