From da4beb4a687aaa8081e6a92d3d3e69b2eaf22e97 Mon Sep 17 00:00:00 2001 From: Will Sheldon <114631109+wssheldon@users.noreply.github.com> Date: Tue, 3 Oct 2023 17:57:46 -0700 Subject: [PATCH] Add not check for update ticket --- src/dispatch/case/flows.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/dispatch/case/flows.py b/src/dispatch/case/flows.py index e64d4edf03ae..187eaaad009b 100644 --- a/src/dispatch/case/flows.py +++ b/src/dispatch/case/flows.py @@ -198,8 +198,9 @@ def case_new_create_flow( 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 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) if case.case_priority.page_assignee: if not service_id: