Skip to content

Commit

Permalink
Remove extra conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
wssheldon committed Oct 4, 2023
1 parent 7a0b5b3 commit 10082ab
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions src/dispatch/case/flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,17 +191,15 @@ def case_new_create_flow(
case=case, db_session=db_session
)

if create_resources:
case_create_resources_flow(
db_session=db_session,
case_id=case.id,
individual_participants=individual_participants,
team_participants=team_participants,
conversation_target=conversation_target,
)
else:
# we still want to update the ticket, but not twice if resources are created
ticket_flows.update_case_ticket(case=case, db_session=db_session)
case_create_resources_flow(
db_session=db_session,
case_id=case.id,
individual_participants=individual_participants,
team_participants=team_participants,
conversation_target=conversation_target,
)
# we still want to update the ticket, but not twice if resources are created
ticket_flows.update_case_ticket(case=case, db_session=db_session)

if case.case_priority.page_assignee:
if not service_id:
Expand Down

0 comments on commit 10082ab

Please sign in to comment.