Fixed bug with healthchecks facade causing speedtest job to fail

This commit is contained in:
Henry Whitaker
2020-08-21 22:55:57 +01:00
parent 79a85fdba9
commit a15d633322

View File

@@ -82,16 +82,17 @@ class SpeedtestJob implements ShouldQueue
private function healthcheck(String $method)
{
try {
$hc = new Healthchecks(SettingsHelper::get('healthchecks_uuid')->value);
if($method === 'start') {
Healthcheck::start();
$hc->start();
}
if($method === 'success') {
Healthcheck::success();
$hc->success();
}
if($method === 'fail') {
Healthcheck::fail();
$hc->fail();
}
} catch(Exception $e) {
Log::error($e->getMessage());