tango-app-api-task 3.7.34 → 3.7.36

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.34",
3
+ "version": "3.7.36",
4
4
  "description": "Task",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -7223,7 +7223,7 @@ export async function AITaskCreation( req, res ) {
7223
7223
  }
7224
7224
  stores = Array.from( storeIds );
7225
7225
  }
7226
- if ( stores.includes( storeData.storeId ) ) {
7226
+ if ( stores.includes( storeData.storeId ) || userDetails.role === 'superadmin' ) {
7227
7227
  finduser.push( user );
7228
7228
  }
7229
7229
  }
@@ -7269,8 +7269,8 @@ export async function AITaskCreation( req, res ) {
7269
7269
  if ( checklistDetails?.aiConfig?.autoTaskConfig.taskValidity?.type == 'hours' ) {
7270
7270
  inputBody['scheduleEndData'] = dayjs.utc( `${date} ${time}`, 'YYYY-MM-DD hh:mm A' ).add( checklistDetails?.aiConfig?.autoTaskConfig.taskValidity.time, 'hour' ).format();
7271
7271
  }
7272
- if ( checklistDetails?.aiConfig?.autoTaskConfig.taskValidity?.type == 'day' ) {
7273
- inputBody['scheduleEndData'] = dayjs.utc( `${date} ${time}`, 'YYYY-MM-DD hh:mm A' ).add( checklistDetails?.aiConfig?.autoTaskConfig.taskValidity, 'day' ).format();
7272
+ if ( checklistDetails?.aiConfig?.autoTaskConfig.taskValidity?.type == 'days' ) {
7273
+ inputBody['scheduleEndData'] = dayjs.utc( `${date} ${time}`, 'YYYY-MM-DD hh:mm A' ).add( checklistDetails?.aiConfig?.autoTaskConfig.taskValidity.time, 'day' ).format();
7274
7274
  }
7275
7275
 
7276
7276
  const inputDateTime = dayjs.utc( `${date} ${time}`, 'YYYY-MM-DD hh:mm A' );