tango-app-api-trax 3.3.1-beta-46 → 3.3.1-beta-47
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
|
@@ -2633,7 +2633,7 @@ export const checklistDropdownV1 = async ( req, res ) => {
|
|
|
2633
2633
|
let findQuery = [
|
|
2634
2634
|
{ $match: { $and: [
|
|
2635
2635
|
{ client_id: requestData.clientId },
|
|
2636
|
-
{ $or: [ { store_id: { $in: requestData.storeId } }, { aiStoreList: { $in: requestData.storeId } } ] },
|
|
2636
|
+
{ $or: [ { store_id: { $in: requestData.storeId } }, { store_id: { $eq: '' }, userEmail: { $in: getUserEmails } }, { aiStoreList: { $in: requestData.storeId } } ] },
|
|
2637
2637
|
{ date_iso: { $gte: fromDate } },
|
|
2638
2638
|
{ date_iso: { $lte: toDate } },
|
|
2639
2639
|
{
|
|
@@ -2643,7 +2643,6 @@ export const checklistDropdownV1 = async ( req, res ) => {
|
|
|
2643
2643
|
{ checkListType: { $in: [ 'customerunattended', 'mobileusagedetection', 'staffleftinthemiddle', 'storeopenandclose', 'uniformdetection' ] } },
|
|
2644
2644
|
],
|
|
2645
2645
|
},
|
|
2646
|
-
{ $or: [ { store_id: { $in: requestData.storeId } }, { store_id: { $eq: '' }, userEmail: { $in: getUserEmails } } ] },
|
|
2647
2646
|
] } },
|
|
2648
2647
|
{
|
|
2649
2648
|
$project: {
|