tango-app-api-task 3.7.15 → 3.7.16

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.15",
3
+ "version": "3.7.16",
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"
@@ -6570,10 +6570,19 @@ async function insertAItaskSingleProcessedTask( checkTask, inputBody, date, time
6570
6570
  newData.checkListFrom = 'api';
6571
6571
  newData.createdAt = new Date();
6572
6572
  newData.updatedAt = new Date();
6573
+ newData.approvalStatus = false;
6574
+ newData.approvalEnable = true;
6575
+ newData.approvalTime = '';
6576
+ newData.approvalTime_string = '';
6577
+ newData.redoStatus = false;
6578
+ newData.approvalByName = '';
6579
+ newData.approvalByEmail = '';
6573
6580
  newData.questionAnswers = [ questions ];
6574
6581
  newData.zoneName = inputBody.zoneName || '';
6575
6582
  newData.checkListType = 'task' || '';
6576
6583
  let insertprocessdata = await taskProcessedService.insert( newData );
6584
+ await taskProcessedConfigService.insert( newData );
6585
+ console.log( '🚀 ~ insertAItaskSingleProcessedTask ~ insertprocessdata:', insertprocessdata );
6577
6586
  if ( insertprocessdata ) {
6578
6587
  if ( uniqueUsers && uniqueUsers.length>0 ) {
6579
6588
  // updated Task Approver//