Skip to content

Commit

Permalink
Adding check for commander (#4275)
Browse files Browse the repository at this point in the history
  • Loading branch information
whitdog47 authored Jan 22, 2024
1 parent 0d62f25 commit 6b0d984
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 @@ -302,7 +302,8 @@ def create(*, db_session, incident_in: IncidentCreate) -> Incident:
oncall_email = oncall_plugin.instance.get_next_oncall(
service_id=incident_role.service.external_id
)
if oncall_email:
# no need to add as observer if already added as commander
if oncall_email and commander_email != oncall_email:
participant_flows.add_participant(
oncall_email,
incident,
Expand Down

0 comments on commit 6b0d984

Please sign in to comment.