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