fix deleting checks

This commit is contained in:
sadnub 2021-04-27 10:58:23 -04:00
parent 2cf16963e3
commit d71e1311ca
1 changed files with 1 additions and 1 deletions

View File

@ -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