tango-app-api-trax 3.9.50 → 3.9.52

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-trax",
3
- "version": "3.9.50",
3
+ "version": "3.9.52",
4
4
  "description": "Trax",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -2281,7 +2281,6 @@ export const flagTablesV2 = async ( req, res ) => {
2281
2281
  } );
2282
2282
 
2283
2283
  let getTotalCount = await processedchecklistService.aggregate( findQuery );
2284
- console.log( getTotalCount );
2285
2284
  if ( !getTotalCount.length ) {
2286
2285
  return res.sendError( { error: 'No Data Found' }, 204 );
2287
2286
  }
@@ -2365,14 +2364,14 @@ export const flagTablesV2 = async ( req, res ) => {
2365
2364
  'Checklist Name': element.checkListName,
2366
2365
  'Coverage': element?.coverage,
2367
2366
  'No of Questions': element?.runAIQuestionCount,
2368
- 'Assigned Stores': element?.checkListType === 'custom' ? element?.assignedStores : element?.assignedStoresAi,
2367
+ 'Assigned Stores': element?.checkListType === 'custom' ? element?.assignedStores : element?.aiStoreList?.length,
2369
2368
  'Flagged Stores': element?.flaggedStores,
2370
2369
  'Question Flags': element?.customQuestionFlagCount,
2371
2370
  ...( element.runAIFlag ? { 'Run AI Flag': element.runAIFlag } : {} ),
2372
2371
  'Not Submitted Flags': element?.customTimeFlagCount,
2373
2372
  'Detection Flags': element?.flagCount,
2374
2373
  'Flags': element?.flagCount,
2375
- 'Compliance': element?.complianceRate,
2374
+ 'Compliance': element?.checkListType === 'activitymonitoring' ? 'NA' : element?.complianceRate,
2376
2375
  // 'Flag Type': element?.checkListType === 'custom' ? 'Question' : 'Detection',
2377
2376
  };
2378
2377
  if ( requestData?.filter === 'all' ) {