fix policy task deletion

This commit is contained in:
sadnub 2021-04-27 12:11:56 -04:00
parent 2eb16c82f4
commit 4234cf0a31
1 changed files with 1 additions and 0 deletions

View File

@ -116,6 +116,7 @@ class AutoTask(APIView):
delete_win_task_schedule.delay(pk=task.pk)
elif task.policy:
delete_policy_autotasks_task.delay(task=task.pk)
task.delete()
return Response(f"{task.name} will be deleted shortly")