Skip to content

Commit

Permalink
Accurately captures severity level at time of incident report (#4655)
Browse files Browse the repository at this point in the history
Co-authored-by: Jeffery Bennett <[email protected]>
Co-authored-by: Will Sheldon <[email protected]>
  • Loading branch information
3 people authored Apr 27, 2024
1 parent 35e0893 commit 012eee4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dispatch/incident/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,10 @@ def create(*, db_session, incident_in: IncidentCreate) -> Incident:
incident_priority_in=incident_in.incident_priority,
)

incident_severity = incident_severity_service.get_default(
incident_severity = incident_severity_service.get_by_name_or_default(
db_session=db_session,
project_id=project.id,
incident_severity_in=incident_in.incident_severity,
)

cost_model = None
Expand Down

0 comments on commit 012eee4

Please sign in to comment.