From 253f073709a23683ca99c9271f72272551ad5c4b Mon Sep 17 00:00:00 2001 From: Will Sheldon <114631109+wssheldon@users.noreply.github.com> Date: Tue, 3 Oct 2023 18:00:36 -0700 Subject: [PATCH] Remove extra conditional in resource creation for Case flow (#3838) * Remove extra conditional * Add not check for update ticket --- src/dispatch/case/flows.py | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/dispatch/case/flows.py b/src/dispatch/case/flows.py index 0aa1ed6b0176..187eaaad009b 100644 --- a/src/dispatch/case/flows.py +++ b/src/dispatch/case/flows.py @@ -191,15 +191,14 @@ 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: + case_create_resources_flow( + db_session=db_session, + case_id=case.id, + individual_participants=individual_participants, + team_participants=team_participants, + conversation_target=conversation_target, + ) + if not create_resources: # 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)