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
|
@@ -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 ) {
|
package/src/dtos/task.dto.js
CHANGED