diff --git a/api/tacticalrmm/checks/serializers.py b/api/tacticalrmm/checks/serializers.py index 95052bf5..57538477 100644 --- a/api/tacticalrmm/checks/serializers.py +++ b/api/tacticalrmm/checks/serializers.py @@ -37,7 +37,7 @@ class CheckSerializer(serializers.ModelSerializer): # disk checks # make sure no duplicate diskchecks exist for an agent/policy if check_type == "diskspace" and not self.instance: # only on create - checks = Check.objects.filter(**self.context) + checks = Check.objects.filter(**self.context).filter(check_type="diskspace") if checks: for check in checks: if val["disk"] in check.disk: