tango-app-api-task 3.7.40 → 3.7.42

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.40",
3
+ "version": "3.7.42",
4
4
  "description": "Task",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -6124,6 +6124,9 @@ async function insertStoreHygienetaskSingleProcessedTask( checkTask, inputBody,
6124
6124
  newData.updatedAt = new Date();
6125
6125
  newData.questionAnswers = [ questions ];
6126
6126
  newData.zoneName = inputBody.zoneName || '';
6127
+ if ( inputBody?.streamId ) {
6128
+ newData.streamId = inputBody?.streamId;
6129
+ }
6127
6130
  newData.checkListType = 'task' || '';
6128
6131
  let insertprocessdata = await taskProcessedService.insert( newData );
6129
6132
  if ( insertprocessdata ) {
@@ -7335,7 +7338,7 @@ export async function AITaskCreation( req, res ) {
7335
7338
  }
7336
7339
 
7337
7340
  // Check this Task Already Exist////
7338
- let checkTask = await taskService.findOne( { checkListName: inputBody.taskName } );
7341
+ let checkTask = await taskService.findOne( { checkListName: inputBody.taskName, client_id: req.body.clientId } );
7339
7342
  if ( checkTask ) {
7340
7343
  let singleInsert = await insertAItaskProcessedTaskCreation( checkTask, inputBody, date, time, storeData, finduser, answer, userAdmin );
7341
7344
  if ( singleInsert ) {
@@ -23,6 +23,7 @@ export const StoreHygienetaskSchema = Joi.object().keys( {
23
23
  referenceImage: Joi.array().required(),
24
24
  zoneName: Joi.string().required(),
25
25
  clientId: Joi.string().optional(),
26
+ streamId: Joi.string().optional(),
26
27
  } );
27
28
 
28
29