Moved int config loading into helper

This commit is contained in:
Henry Whitaker
2020-08-25 19:08:32 +01:00
parent 0eff685277
commit 7da1d3d760
3 changed files with 29 additions and 24 deletions

View File

@@ -30,17 +30,17 @@ class IntegrationsController extends Controller
$methodResp = 'test healthchecks \'' . $method . '\' endpoint';
try {
$hc = new Healthchecks(config('integrations.healthchecks_uuid'));
// SettingsHelper::loadIntegrationConfig();
if($method == 'success') {
$hc->success();
Healthcheck::success();
}
if($method == 'fail') {
$hc->fail();
Healthcheck::fail();
}
if($method == 'start') {
$hc->start();
Healthcheck::start();
}
return response()->json([