tango-app-api-task 3.7.49 → 3.7.50

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.49",
3
+ "version": "3.7.50",
4
4
  "description": "Task",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -1049,7 +1049,7 @@ export async function taskConfig( req, res ) {
1049
1049
  } ) : [];
1050
1050
  let endDate = dayjs.utc( configDetails?.scheduleDate ).format( 'YYYY-MM-DD' ) + ' ' + configDetails.scheduleEndTime;
1051
1051
  configDetails.scheduleEndTimeISO = dayjs.utc( endDate, 'YYYY-MM-DD hh:mm A' ).format();
1052
- configDetails.publishDate = dayjs.utc( dayjs().format( 'hh:mm A' ), 'hh:mm A' ).format();
1052
+ configDetails.publishDate = dayjs.tz( 'Asia/Kolkata' ).format();
1053
1053
  let clientDetails = await clientService.findOne( { clientId: inputBody?.clientId }, { traxVideoUploadTimeLimit: 1 } );
1054
1054
  configDetails = { ...configDetails, videoUploadTimeLimit: clientDetails?.traxVideoUploadTimeLimit };
1055
1055
  let response = await taskService.updateOne( { _id: inputBody._id }, configDetails );
@@ -1254,7 +1254,7 @@ export async function insertSingleProcessData( checklistId, answerTypechange, in
1254
1254
  } else {
1255
1255
  return false;
1256
1256
  }
1257
- let sTime = dayjs.utc().format( 'hh:mm A' );
1257
+ let sTime = dayjs.utc( getCLconfig.publishDate ).format( 'hh:mm A' );
1258
1258
  startTimeIso = dayjs.utc( sTime, 'hh:mm A' );
1259
1259
  endTimeIso = dayjs.utc( getCLconfig.scheduleEndTimeISO );
1260
1260
  let insertdata = {};
@@ -1953,7 +1953,7 @@ export async function createChecklistTask( req, res ) {
1953
1953
  priorityType: 'high',
1954
1954
  client_id: inputBody.clientId,
1955
1955
  checkListType: inputBody.checkListType,
1956
- publishDate: dayjs().format(),
1956
+ publishDate: dayjs().tz( 'Asia/Kolkata' ).format(),
1957
1957
  locationCount: 1,
1958
1958
  ...( inputBody?.checkListId ) ? { referenceCheckListId: inputBody?.checkListId } : {},
1959
1959
  coverage: checklistDetails?.coverage || 'store',