tango-app-api-audit 3.6.52 → 3.6.53

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-audit",
3
- "version": "3.6.52",
3
+ "version": "3.6.53",
4
4
  "description": "audit & audit metrics apis",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -3275,7 +3275,8 @@ export async function getConversationDetails( req, res ) {
3275
3275
  };
3276
3276
 
3277
3277
  // Format metrics results with sequential time allocation
3278
- const metricsData = source?.cohort_analysis_results?.[0]?.metrics_results || [];
3278
+ const matchedCohort = source?.cohort_analysis_results?.find( ( c ) => c.cohortId === 'cohort_11_1ddea945-ff3a-4c11-95a9-bb425ca927de' );
3279
+ const metricsData = matchedCohort?.metrics_results || [];
3279
3280
 
3280
3281
  // Calculate sequential times for detected metrics
3281
3282
  let currentSeconds = 0;