From 4234cf0a3170309b077e0f0ce6fb8740a3edac01 Mon Sep 17 00:00:00 2001 From: sadnub Date: Tue, 27 Apr 2021 12:11:56 -0400 Subject: [PATCH] fix policy task deletion --- api/tacticalrmm/autotasks/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/api/tacticalrmm/autotasks/views.py b/api/tacticalrmm/autotasks/views.py index e19e4b16..bf6d3113 100644 --- a/api/tacticalrmm/autotasks/views.py +++ b/api/tacticalrmm/autotasks/views.py @@ -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")