tango-app-api-task 3.7.5-halfshutter-2 → 3.7.6
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tango-app-api-task",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.6",
|
|
4
4
|
"description": "Task",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"nodemon": "^3.1.7",
|
|
27
27
|
"npm": "^10.9.2",
|
|
28
28
|
"tango-api-schema": "^2.2.201",
|
|
29
|
-
"tango-app-api-middleware": "^3.
|
|
29
|
+
"tango-app-api-middleware": "^3.6.8",
|
|
30
30
|
"winston": "^3.17.0",
|
|
31
31
|
"winston-daily-rotate-file": "^5.0.0"
|
|
32
32
|
},
|
|
@@ -1531,15 +1531,16 @@ async function insertPCBulkV3( getCLconfig, checklistId, updatedchecklist, date,
|
|
|
1531
1531
|
element4.rawImageUpload = getCLconfig?.rawImageUpload || false;
|
|
1532
1532
|
element4.rawVideoUpload = getCLconfig?.rawVideoUpload || false;
|
|
1533
1533
|
element4.videoUploadTimeLimit = getCLconfig?.videoUploadTimeLimit || 0;
|
|
1534
|
+
if ( inputBody?.aiTask ) {
|
|
1535
|
+
element4.questionAnswers = insertdata.questionAnswers;
|
|
1536
|
+
}
|
|
1534
1537
|
if ( inputBody && inputBody?.streamId ) {
|
|
1535
1538
|
element4.streamId = inputBody?.streamId;
|
|
1536
1539
|
}
|
|
1537
|
-
console.log( insertdata.questionAnswers, element4.comments );
|
|
1538
1540
|
if ( answerTypechange ) {
|
|
1539
1541
|
element4.questionAnswers = insertdata.questionAnswers;
|
|
1540
1542
|
element4.planoType = 'qrScan';
|
|
1541
1543
|
}
|
|
1542
|
-
|
|
1543
1544
|
if ( insertfrom === 'gallery' ) {
|
|
1544
1545
|
// Clone the data to prevent shared reference
|
|
1545
1546
|
const clonedQuestionAnswers = JSON.parse( JSON.stringify( insertdata.questionAnswers ) );
|
|
@@ -1547,7 +1548,6 @@ async function insertPCBulkV3( getCLconfig, checklistId, updatedchecklist, date,
|
|
|
1547
1548
|
|
|
1548
1549
|
element4.questionAnswers = clonedQuestionAnswers;
|
|
1549
1550
|
}
|
|
1550
|
-
|
|
1551
1551
|
element4.coverage = getCLconfig?.coverage;
|
|
1552
1552
|
assignUserList.push( element4 );
|
|
1553
1553
|
}
|
|
@@ -3208,6 +3208,9 @@ export const duplicateChecklist = async ( req, res ) => {
|
|
|
3208
3208
|
dupDetails.createdAt = new Date();
|
|
3209
3209
|
dupDetails.updatedAt = new Date();
|
|
3210
3210
|
dupDetails.publishDate = '';
|
|
3211
|
+
dupDetails.rawImageUpload = false;
|
|
3212
|
+
dupDetails.rawVideoUpload = false;
|
|
3213
|
+
dupDetails.videoUploadTimeLimit = 0;
|
|
3211
3214
|
delete dupDetails._id;
|
|
3212
3215
|
let logInsertData = {
|
|
3213
3216
|
action: 'duplicateTask',
|
|
@@ -6889,7 +6892,7 @@ export async function createAITaskGroup( req, res ) {
|
|
|
6889
6892
|
assignId: storeData?._id,
|
|
6890
6893
|
};
|
|
6891
6894
|
await taskAssignService.create( userDetails );
|
|
6892
|
-
await insertSingleProcessData( response?._id );
|
|
6895
|
+
await insertSingleProcessData( response?._id, false, { aiTask: true } );
|
|
6893
6896
|
return res.sendSuccess( 'Task created successfully' );
|
|
6894
6897
|
}
|
|
6895
6898
|
}
|