tango-app-api-task 3.7.41 → 3.7.43

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.41",
3
+ "version": "3.7.43",
4
4
  "description": "Task",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -6072,6 +6072,10 @@ async function insertStoreHygienetaskSingleProcessedTask( checkTask, inputBody,
6072
6072
  },
6073
6073
  ];
6074
6074
 
6075
+ if ( inputBody?.detectionTime ) {
6076
+ question[0].answers[0].detectionTime = inputBody.detectionTime;
6077
+ }
6078
+
6075
6079
  let images = [];
6076
6080
  for ( let imgpath of inputBody.referenceImage ) {
6077
6081
  let configURL = JSON.parse( process.env.BUCKET );
@@ -6124,6 +6128,9 @@ async function insertStoreHygienetaskSingleProcessedTask( checkTask, inputBody,
6124
6128
  newData.updatedAt = new Date();
6125
6129
  newData.questionAnswers = [ questions ];
6126
6130
  newData.zoneName = inputBody.zoneName || '';
6131
+ if ( inputBody?.streamId ) {
6132
+ newData.streamId = inputBody?.streamId;
6133
+ }
6127
6134
  newData.checkListType = 'task' || '';
6128
6135
  let insertprocessdata = await taskProcessedService.insert( newData );
6129
6136
  if ( insertprocessdata ) {
@@ -23,6 +23,8 @@ 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(),
27
+ detectionTime: Joi.string().optional(),
26
28
  } );
27
29
 
28
30