tango-app-api-task 3.7.38 → 3.7.39
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
|
@@ -2029,7 +2029,7 @@ export async function createChecklistTask( req, res ) {
|
|
|
2029
2029
|
await taskQuestionService.create( question );
|
|
2030
2030
|
let storeDetails;
|
|
2031
2031
|
if ( inputBody?.storeName ) {
|
|
2032
|
-
storeDetails = await storeService.findOne( { storeName: inputBody.storeName, status: 'active' }, { storeId: 1, storeProfile: 1 } );
|
|
2032
|
+
storeDetails = await storeService.findOne( { storeName: inputBody.storeName, status: 'active', clientId: inputBody.clientId }, { storeId: 1, storeProfile: 1 } );
|
|
2033
2033
|
}
|
|
2034
2034
|
|
|
2035
2035
|
let userDetails = {
|
|
@@ -2277,7 +2277,7 @@ export async function createChecklistMultiTask( req, res ) {
|
|
|
2277
2277
|
|
|
2278
2278
|
let storeDetails;
|
|
2279
2279
|
if ( originaldata?.storeName ) {
|
|
2280
|
-
storeDetails = await storeService.findOne( { storeName: originaldata.storeName, status: 'active' }, { storeId: 1, storeProfile: 1 } );
|
|
2280
|
+
storeDetails = await storeService.findOne( { storeName: originaldata.storeName, status: 'active', clientId: inputBody.clientId }, { storeId: 1, storeProfile: 1 } );
|
|
2281
2281
|
}
|
|
2282
2282
|
let findUser = await userService.findOne( { email: originaldata.userEmail } );
|
|
2283
2283
|
let userDetails = {
|
|
@@ -7589,6 +7589,9 @@ async function insertAItaskProcessedTaskCreation( checkTask, inputBody, date, ti
|
|
|
7589
7589
|
oldData.questionAnswers = [ questions ];
|
|
7590
7590
|
oldData.zoneName = inputBody.zoneName || '';
|
|
7591
7591
|
oldData.checkListType = 'task' || '';
|
|
7592
|
+
if ( inputBody.streamId ) {
|
|
7593
|
+
oldData.streamId = inputBody?.streamId;
|
|
7594
|
+
}
|
|
7592
7595
|
if ( inputBody.aiType ) {
|
|
7593
7596
|
oldData.aiType = inputBody.aiType;
|
|
7594
7597
|
}
|