tango-app-api-task 3.7.15 → 3.7.17
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.
|
|
3
|
+
"version": "3.7.17",
|
|
4
4
|
"description": "Task",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"start": "nodemon --exec \"eslint --fix . && node
|
|
8
|
+
"start": "nodemon --exec \"eslint --fix . && node app.js\""
|
|
9
9
|
},
|
|
10
10
|
"engines": {
|
|
11
11
|
"node": ">=18.10.0"
|
|
@@ -5084,6 +5084,7 @@ 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['rawImageUpload'] = inputBody.rawImageUpload;
|
|
5087
5088
|
|
|
5088
5089
|
let response = await taskService.create( data );
|
|
5089
5090
|
if ( response?.approver.length ) {
|
|
@@ -6570,10 +6571,19 @@ async function insertAItaskSingleProcessedTask( checkTask, inputBody, date, time
|
|
|
6570
6571
|
newData.checkListFrom = 'api';
|
|
6571
6572
|
newData.createdAt = new Date();
|
|
6572
6573
|
newData.updatedAt = new Date();
|
|
6574
|
+
newData.approvalStatus = false;
|
|
6575
|
+
newData.approvalEnable = true;
|
|
6576
|
+
newData.approvalTime = '';
|
|
6577
|
+
newData.approvalTime_string = '';
|
|
6578
|
+
newData.redoStatus = false;
|
|
6579
|
+
newData.approvalByName = '';
|
|
6580
|
+
newData.approvalByEmail = '';
|
|
6573
6581
|
newData.questionAnswers = [ questions ];
|
|
6574
6582
|
newData.zoneName = inputBody.zoneName || '';
|
|
6575
6583
|
newData.checkListType = 'task' || '';
|
|
6576
6584
|
let insertprocessdata = await taskProcessedService.insert( newData );
|
|
6585
|
+
await taskProcessedConfigService.insert( newData );
|
|
6586
|
+
console.log( '🚀 ~ insertAItaskSingleProcessedTask ~ insertprocessdata:', insertprocessdata );
|
|
6577
6587
|
if ( insertprocessdata ) {
|
|
6578
6588
|
if ( uniqueUsers && uniqueUsers.length>0 ) {
|
|
6579
6589
|
// updated Task Approver//
|
package/src/dtos/task.dto.js
CHANGED
|
@@ -60,6 +60,7 @@ export const taskcreationSchema = Joi.object().keys( {
|
|
|
60
60
|
user: Joi.string().required(),
|
|
61
61
|
questions: Joi.array().items( questionSchema ).required(),
|
|
62
62
|
scheduleDate: Joi.string().optional(),
|
|
63
|
+
rawImageUpload: Joi.boolean().optional(),
|
|
63
64
|
scheduleEndTime: Joi.string().optional(),
|
|
64
65
|
approver: Joi.string().required(),
|
|
65
66
|
creator: Joi.string().required(),
|