tango-app-api-task 3.7.5-halfshutter-1 → 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.5-halfshutter-1",
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.1.77",
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
  },
@@ -1528,15 +1528,19 @@ async function insertPCBulkV3( getCLconfig, checklistId, updatedchecklist, date,
1528
1528
  element4.coverage = getCLconfig?.coverage;
1529
1529
  element4.checkListFrom = getCLconfig?.checkListFrom;
1530
1530
  element4.zoneName = getCLconfig?.zoneName || '';
1531
+ element4.rawImageUpload = getCLconfig?.rawImageUpload || false;
1532
+ element4.rawVideoUpload = getCLconfig?.rawVideoUpload || false;
1533
+ element4.videoUploadTimeLimit = getCLconfig?.videoUploadTimeLimit || 0;
1534
+ if ( inputBody?.aiTask ) {
1535
+ element4.questionAnswers = insertdata.questionAnswers;
1536
+ }
1531
1537
  if ( inputBody && inputBody?.streamId ) {
1532
1538
  element4.streamId = inputBody?.streamId;
1533
1539
  }
1534
- console.log( insertdata.questionAnswers, element4.comments );
1535
1540
  if ( answerTypechange ) {
1536
1541
  element4.questionAnswers = insertdata.questionAnswers;
1537
1542
  element4.planoType = 'qrScan';
1538
1543
  }
1539
-
1540
1544
  if ( insertfrom === 'gallery' ) {
1541
1545
  // Clone the data to prevent shared reference
1542
1546
  const clonedQuestionAnswers = JSON.parse( JSON.stringify( insertdata.questionAnswers ) );
@@ -1544,7 +1548,6 @@ async function insertPCBulkV3( getCLconfig, checklistId, updatedchecklist, date,
1544
1548
 
1545
1549
  element4.questionAnswers = clonedQuestionAnswers;
1546
1550
  }
1547
-
1548
1551
  element4.coverage = getCLconfig?.coverage;
1549
1552
  assignUserList.push( element4 );
1550
1553
  }
@@ -3205,6 +3208,9 @@ export const duplicateChecklist = async ( req, res ) => {
3205
3208
  dupDetails.createdAt = new Date();
3206
3209
  dupDetails.updatedAt = new Date();
3207
3210
  dupDetails.publishDate = '';
3211
+ dupDetails.rawImageUpload = false;
3212
+ dupDetails.rawVideoUpload = false;
3213
+ dupDetails.videoUploadTimeLimit = 0;
3208
3214
  delete dupDetails._id;
3209
3215
  let logInsertData = {
3210
3216
  action: 'duplicateTask',
@@ -6886,7 +6892,7 @@ export async function createAITaskGroup( req, res ) {
6886
6892
  assignId: storeData?._id,
6887
6893
  };
6888
6894
  await taskAssignService.create( userDetails );
6889
- await insertSingleProcessData( response?._id );
6895
+ await insertSingleProcessData( response?._id, false, { aiTask: true } );
6890
6896
  return res.sendSuccess( 'Task created successfully' );
6891
6897
  }
6892
6898
  }