tango-app-api-trax 3.6.1-runai-3 → 3.6.1-runai-4

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.6.1-runai-3",
3
+ "version": "3.6.1-runai-4",
4
4
  "description": "Trax",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -3179,7 +3179,7 @@ export const flagTablesV2 = async ( req, res ) => {
3179
3179
  if ( resultData.status_code == '200' ) {
3180
3180
  for ( let index = 0; index < getChecklistPerformanceData.length; index++ ) {
3181
3181
  if ( [ 'runAI', 'all' ].includes( requestData?.filter ) ) {
3182
- let findCheckList = resultData.runAI.list.find( ( ele ) => ele.checkListName == getChecklistPerformanceData[index].checkListName );
3182
+ let findCheckList = resultData?.runAI?.list?.find( ( ele ) => ele.checkListName == getChecklistPerformanceData[index].checkListName );
3183
3183
  if ( findCheckList ) {
3184
3184
  if ( requestData?.filter == 'all' ) {
3185
3185
  getChecklistPerformanceData[index].runAIFlag = findCheckList.flagCount;
@@ -3191,7 +3191,7 @@ export const flagTablesV2 = async ( req, res ) => {
3191
3191
  } else {
3192
3192
  if ( requestData?.filter == 'all' ) {
3193
3193
  getChecklistPerformanceData[index].runAIFlag = 0;
3194
- getChecklistPerformanceData[index].runAIFlagStore = 0;
3194
+ getChecklistPerformanceData[index].flaggedStores = 0;
3195
3195
  } else {
3196
3196
  getChecklistPerformanceData[index].flagCount = 0;
3197
3197
  getChecklistPerformanceData[index].flaggedStores = 0;