fix response
This commit is contained in:
@@ -256,7 +256,7 @@ class Froxlor extends \Froxlor\Api\ApiCommand
|
|||||||
$integrity = new \Froxlor\Database\IntegrityCheck();
|
$integrity = new \Froxlor\Database\IntegrityCheck();
|
||||||
$result = $integrity->checkAll();
|
$result = $integrity->checkAll();
|
||||||
if ($result) {
|
if ($result) {
|
||||||
return $this->response("OK");
|
return $this->response(null, 204);
|
||||||
}
|
}
|
||||||
throw new \Exception("Some checks failed.", 406);
|
throw new \Exception("Some checks failed.", 406);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user