From 3b7ded37cc941541f99814b3823f3eb585903adf Mon Sep 17 00:00:00 2001 From: Celes Renata Date: Fri, 17 Apr 2026 05:30:36 +0000 Subject: [PATCH] fix: global event detail returns 'impacts' field to match frontend type API was returning 'affected_companies' but frontend GlobalEventDetail type expects 'impacts'. Renamed the response field. --- services/api/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/api/app.py b/services/api/app.py index 947ba22..cefac87 100644 --- a/services/api/app.py +++ b/services/api/app.py @@ -2277,7 +2277,7 @@ async def get_macro_event(event_id: str): imp_dict = _row_to_dict(imp) imp_dict["contributing_factors"] = _parse_jsonb(imp_dict.get("contributing_factors")) impact_list.append(imp_dict) - result["affected_companies"] = impact_list + result["impacts"] = impact_list return result