Skip to content

Commit 4134666

Browse files
committed
fix(assign): Fix assign too return
1 parent a5b3a5b commit 4134666

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/gg_api_core/src/gg_api_core/tools/assign_incident.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,12 @@ async def assign_incident(params: AssignIncidentParams) -> AssignIncidentResult:
154154

155155
# Parse the response
156156
if isinstance(result, dict):
157-
return AssignIncidentResult(incident_id=params.incident_id, assignee_id=assignee_id, success=True, **result)
157+
# Remove assignee_id from result dict to avoid conflict with our explicit parameter
158+
result_copy = result.copy()
159+
result_copy.pop("assignee_id", None)
160+
return AssignIncidentResult(
161+
incident_id=params.incident_id, assignee_id=assignee_id, success=True, **result_copy
162+
)
158163
else:
159164
# Fallback response
160165
return AssignIncidentResult(incident_id=params.incident_id, assignee_id=assignee_id, success=True)

0 commit comments

Comments
 (0)