tango-app-api-trax 3.7.4-runai-airtelv2-8 → 3.7.4-runai-airtelv2-10
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
|
@@ -2933,7 +2933,7 @@ export async function checklistv1( req, res ) {
|
|
|
2933
2933
|
|
|
2934
2934
|
const [ checklistResult, taskResult ] = await Promise.allSettled( [
|
|
2935
2935
|
processedchecklist.aggregate( buildPipeline( [ { checkListType: 'custom' } ], { isPlano: 1, planoId: 1, planoType: 1, floorId: 1 } ) ),
|
|
2936
|
-
processedTask.aggregate( taskBuildPipeline( [], { isPlano: 1, planoId: 1, planoType: 1, floorId: 1, refTaskId: 1 } ) ),
|
|
2936
|
+
processedTask.aggregate( taskBuildPipeline( [], { isPlano: 1, planoId: 1, planoType: 1, floorId: 1, refTaskId: 1, store_id: 1 } ) ),
|
|
2937
2937
|
] );
|
|
2938
2938
|
|
|
2939
2939
|
const checklistData = checklistResult.status === 'fulfilled' ? checklistResult.value : [];
|
|
@@ -547,7 +547,8 @@ export const flagCardsV1 = async ( req, res ) => {
|
|
|
547
547
|
client_id: clientId,
|
|
548
548
|
// $or: [ { store_id: { $in: storeId } }, { aiStoreList: { $in: storeId } } ],
|
|
549
549
|
date_iso: { $gte: adjustedFromDate, $lte: adjustedToDate },
|
|
550
|
-
$or: [ { store_id: { $in: storeId } }, { store_id: { $eq: '' }, userEmail: { $in: requestData.userEmailes } }, { aiStoreList: { $in: storeId } } ],
|
|
550
|
+
// $or: [ { store_id: { $in: storeId } }, { store_id: { $eq: '' }, userEmail: { $in: requestData.userEmailes } }, { aiStoreList: { $in: storeId } } ],
|
|
551
|
+
$or: [ { store_id: { $in: storeId } }, { store_id: { $eq: '' }, userEmail: { $in: requestData.userEmailes } } ],
|
|
551
552
|
},
|
|
552
553
|
},
|
|
553
554
|
{
|
|
@@ -567,6 +568,7 @@ export const flagCardsV1 = async ( req, res ) => {
|
|
|
567
568
|
];
|
|
568
569
|
|
|
569
570
|
const getOverallChecklistData = await processedchecklistService.aggregate( findQuery );
|
|
571
|
+
console.log( 'getOverallChecklistData =>', getOverallChecklistData );
|
|
570
572
|
|
|
571
573
|
if ( !getOverallChecklistData.length ) {
|
|
572
574
|
const resVal = {
|
|
@@ -2876,7 +2878,8 @@ export const flagComparisonCardsV2 = async ( req, res ) => {
|
|
|
2876
2878
|
const createFindQuery = ( fromDate, toDate ) => [
|
|
2877
2879
|
{ $match: { client_id: requestData.clientId,
|
|
2878
2880
|
date_iso: { $gte: fromDate, $lte: toDate },
|
|
2879
|
-
$or: [ { store_id: { $in: requestData.storeId } }, { store_id: { $eq: '' }, userEmail: { $in: requestData.userEmailes } }, { aiStoreList: { $in: requestData.storeId } } ],
|
|
2881
|
+
// $or: [ { store_id: { $in: requestData.storeId } }, { store_id: { $eq: '' }, userEmail: { $in: requestData.userEmailes } }, { aiStoreList: { $in: requestData.storeId } } ],
|
|
2882
|
+
$or: [ { store_id: { $in: requestData.storeId } }, { store_id: { $eq: '' }, userEmail: { $in: requestData.userEmailes } } ],
|
|
2880
2883
|
} },
|
|
2881
2884
|
{
|
|
2882
2885
|
$project: {
|
|
@@ -3006,7 +3009,8 @@ export const flagTablesV2 = async ( req, res ) => {
|
|
|
3006
3009
|
findAndQuery.push(
|
|
3007
3010
|
{ client_id: requestData.clientId },
|
|
3008
3011
|
{ date_iso: { $gte: fromDate, $lte: toDate } },
|
|
3009
|
-
{ $or: [ { store_id: { $in: requestData.storeId } }, { store_id: { $eq: '' }, userEmail: { $in: requestData.userEmailes } }, { aiStoreList: { $in: requestData.storeId } } ] },
|
|
3012
|
+
// { $or: [ { store_id: { $in: requestData.storeId } }, { store_id: { $eq: '' }, userEmail: { $in: requestData.userEmailes } }, { aiStoreList: { $in: requestData.storeId } } ] },
|
|
3013
|
+
{ $or: [ { store_id: { $in: requestData.storeId } }, { store_id: { $eq: '' }, userEmail: { $in: requestData.userEmailes } } ] },
|
|
3010
3014
|
);
|
|
3011
3015
|
|
|
3012
3016
|
if ( requestData?.filter === 'all' ) {
|