tango-app-api-task 3.7.6 → 3.7.8
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.8",
|
|
4
4
|
"description": "Task",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"mongodb": "^6.10.0",
|
|
26
26
|
"nodemon": "^3.1.7",
|
|
27
27
|
"npm": "^10.9.2",
|
|
28
|
-
"tango-api-schema": "^2.
|
|
28
|
+
"tango-api-schema": "^2.4.30",
|
|
29
29
|
"tango-app-api-middleware": "^3.6.8",
|
|
30
30
|
"winston": "^3.17.0",
|
|
31
31
|
"winston-daily-rotate-file": "^5.0.0"
|
|
@@ -25,6 +25,7 @@ import * as ApproverModel from '../service/approver.service.js';
|
|
|
25
25
|
import { createTeamsModel, findOneTeams, updateOneTeamModel, findteams } from '../service/teams.service.js';
|
|
26
26
|
import { sendPushNotification } from 'tango-app-api-middleware';
|
|
27
27
|
import * as checklistService from '../service/checklist.service.js';
|
|
28
|
+
import * as clientService from '../service/client.service.js';
|
|
28
29
|
import isEqual from 'lodash/isEqual.js';
|
|
29
30
|
async function LamdaServiceCall( url, data ) {
|
|
30
31
|
try {
|
|
@@ -97,6 +98,8 @@ export async function createUpdateTask( req, res ) {
|
|
|
97
98
|
} else {
|
|
98
99
|
query = { checkListName: inputBody.checklistName, client_id: req.body?.clientId };
|
|
99
100
|
}
|
|
101
|
+
let clientDetails = await clientService.findOne( { clientId: req.body?.clientId }, { traxVideoUploadTimeLimit: 1 } );
|
|
102
|
+
checkListDetails = { ...checkListDetails, videoUploadTimeLimit: clientDetails?.traxVideoUploadTimeLimit };
|
|
100
103
|
let data = await taskService.updateOne( query, checkListDetails );
|
|
101
104
|
if ( data.upsertedId || inputBody._id ) {
|
|
102
105
|
checkListId = data?.upsertedId || inputBody._id;
|
|
@@ -1045,7 +1048,8 @@ export async function taskConfig( req, res ) {
|
|
|
1045
1048
|
let endDate = dayjs.utc( configDetails?.scheduleDate ).format( 'YYYY-MM-DD' ) + ' ' + configDetails.scheduleEndTime;
|
|
1046
1049
|
configDetails.scheduleEndTimeISO = dayjs.utc( endDate, 'YYYY-MM-DD hh:mm A' ).format();
|
|
1047
1050
|
configDetails.publishDate = dayjs.utc( dayjs().format( 'hh:mm A' ), 'hh:mm A' ).format();
|
|
1048
|
-
|
|
1051
|
+
let clientDetails = await clientService.findOne( { clientId: req.body?.clientId }, { traxVideoUploadTimeLimit: 1 } );
|
|
1052
|
+
configDetails = { ...configDetails, videoUploadTimeLimit: clientDetails?.traxVideoUploadTimeLimit };
|
|
1049
1053
|
let response = await taskService.updateOne( { _id: inputBody._id }, configDetails );
|
|
1050
1054
|
if ( inputBody?.approver.length ) {
|
|
1051
1055
|
let data = [];
|