tango-app-api-task 3.7.12 → 3.7.14

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,11 +1,11 @@
1
1
  {
2
2
  "name": "tango-app-api-task",
3
- "version": "3.7.12",
3
+ "version": "3.7.14",
4
4
  "description": "Task",
5
5
  "main": "index.js",
6
6
  "type": "module",
7
7
  "scripts": {
8
- "start": "nodemon --exec \"eslint --fix . && node index.js\""
8
+ "start": "nodemon --exec \"eslint --fix . && node app.js\""
9
9
  },
10
10
  "engines": {
11
11
  "node": ">=18.10.0"
@@ -5084,7 +5084,6 @@ export async function taskcreation( req, res ) {
5084
5084
  let clientDetails = await clientService.findOne( { clientId: inputBody?.clientId }, { traxVideoUploadTimeLimit: 1 } );
5085
5085
  data['videoUploadTimeLimit'] = clientDetails?.traxVideoUploadTimeLimit || 0;
5086
5086
  data['approver'] = userAdmin;
5087
- data['allowUploadFromGallery'] = true;
5088
5087
 
5089
5088
  let response = await taskService.create( data );
5090
5089
  if ( response?.approver.length ) {
@@ -5138,7 +5137,7 @@ export async function taskcreation( req, res ) {
5138
5137
  'answerType': ques?.answerType || 'yes/no',
5139
5138
  'runAI': false,
5140
5139
  'runAIDescription': '',
5141
- 'allowUploadfromGallery': false,
5140
+ 'allowUploadfromGallery': ques?.allowUploadfromGallery ?? false,
5142
5141
  'linkType': false,
5143
5142
  'questionReferenceImage': [],
5144
5143
  'answers': answer,
@@ -6575,6 +6574,8 @@ async function insertAItaskSingleProcessedTask( checkTask, inputBody, date, time
6575
6574
  newData.zoneName = inputBody.zoneName || '';
6576
6575
  newData.checkListType = 'task' || '';
6577
6576
  let insertprocessdata = await taskProcessedService.insert( newData );
6577
+ await taskProcessedConfigService.insert( newData );
6578
+ console.log( '🚀 ~ insertAItaskSingleProcessedTask ~ insertprocessdata:', insertprocessdata );
6578
6579
  if ( insertprocessdata ) {
6579
6580
  if ( uniqueUsers && uniqueUsers.length>0 ) {
6580
6581
  // updated Task Approver//
@@ -49,6 +49,7 @@ const questionSchema = Joi.object( {
49
49
  question: Joi.string().required(),
50
50
  answerType: Joi.string().required(),
51
51
  options: Joi.array().items().optional(),
52
+ allowUploadfromGallery: Joi.boolean().optional(),
52
53
  } );
53
54
  const gettaskSchema = Joi.object( {
54
55
  sourceCheckList_id: Joi.string().required(),