From d71e1311ca6ea23b2eb971702dd78ba17484cb0b Mon Sep 17 00:00:00 2001 From: sadnub Date: Tue, 27 Apr 2021 10:58:23 -0400 Subject: [PATCH] fix deleting checks --- api/tacticalrmm/checks/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/tacticalrmm/checks/views.py b/api/tacticalrmm/checks/views.py index a9c6bdb4..56bd5dd4 100644 --- a/api/tacticalrmm/checks/views.py +++ b/api/tacticalrmm/checks/views.py @@ -122,7 +122,7 @@ class GetUpdateDeleteCheck(APIView): def delete(self, request, pk): from automation.tasks import generate_agent_checks_task - check = get_object_or_404(Check, pk) + check = get_object_or_404(Check, pk=pk) check.delete() # Policy check deleted