fix response

This commit is contained in:
envoyr
2022-02-20 11:42:52 +01:00
parent 424a00b39e
commit ddc53e87fa

View File

@@ -256,7 +256,7 @@ class Froxlor extends \Froxlor\Api\ApiCommand
$integrity = new \Froxlor\Database\IntegrityCheck();
$result = $integrity->checkAll();
if ($result) {
return $this->response("OK");
return $this->response(null, 204);
}
throw new \Exception("Some checks failed.", 406);
}