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.
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user