Skip to content
Snippets Groups Projects
Commit 5c819292 authored by Tibo's avatar Tibo
Browse files

Show error if last client version is not installed

parent dc12a974
No related branches found
No related tags found
No related merge requests found
......@@ -28,6 +28,10 @@ class ClientVersion extends \App\AbstractSensor {
}
public function status() {
return self::STATUS_OK;
if ($this->getServer()->clientVersion() === $this->latestVersion()) {
return self::STATUS_OK;
}
return self::STATUS_WARNING;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment