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) private function healthcheck(String $method)
{ {
try { try {
$hc = new Healthchecks(SettingsHelper::get('healthchecks_uuid')->value);
if($method === 'start') { if($method === 'start') {
Healthcheck::start(); $hc->start();
} }
if($method === 'success') { if($method === 'success') {
Healthcheck::success(); $hc->success();
} }
if($method === 'fail') { if($method === 'fail') {
Healthcheck::fail(); $hc->fail();
} }
} catch(Exception $e) { } catch(Exception $e) {
Log::error($e->getMessage()); Log::error($e->getMessage());