工作流bug

This commit is contained in:
曹前明 2022-07-15 10:38:06 +08:00
parent 318dd48883
commit 3a1b6483f0
2 changed files with 3 additions and 1 deletions

View File

@ -206,6 +206,8 @@ class WfService(object):
if len(destination_participant) == 1: # 如果只有一个人
destination_participant_type = State.PARTICIPANT_TYPE_PERSONAL
destination_participant = destination_participant[0]
elif destination_participant_type == State.PARTICIPANT_TYPE_ROBOT:
pass
else:
destination_participant_type = State.PARTICIPANT_TYPE_PERSONAL
if destination_participant_type == State.PARTICIPANT_TYPE_MULTI:

View File

@ -441,7 +441,7 @@ class TicketViewSet(CreateUpdateCustomMixin, CreateModelMixin, ListModelMixin, R
ticket = self.get_object()
if not ticket.script_run_last_result:
ticket.script_run_last_result = True
run_task(ticket.id)
run_task.delay(ticket.id)
return Response()