tango-app-api-task 3.7.37 → 3.7.38

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.37",
3
+ "version": "3.7.38",
4
4
  "description": "Task",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -7093,10 +7093,7 @@ export async function AITaskCreation( req, res ) {
7093
7093
 
7094
7094
  let checklistDetails = await checklistService.findOne( { checkListType: req.body.aiType, publish: true, client_id: req.body.clientId }, { aiConfig: 1 } );
7095
7095
 
7096
- if ( !checklistDetails?.aiConfig?.autoTaskConfig?.enabled ) {
7097
- return res.sendError( 'No data found', 204 );
7098
- }
7099
- if ( !checklistDetails ) {
7096
+ if ( !checklistDetails || !checklistDetails?.aiConfig?.autoTaskConfig?.enabled ) {
7100
7097
  return res.sendError( 'No data found', 204 );
7101
7098
  }
7102
7099
  // Step:1 Store Validation