diff --git a/app/Http/HealthChecks/PastoralModuleApiConnectionCheck.php b/app/Http/HealthChecks/PastoralModuleApiConnectionCheck.php index 2a1d24e..7165030 100644 --- a/app/Http/HealthChecks/PastoralModuleApiConnectionCheck.php +++ b/app/Http/HealthChecks/PastoralModuleApiConnectionCheck.php @@ -13,7 +13,7 @@ public function run(): Result { $result = Result::make(); try { - $user = Http::connectTimeout(300)->pastoralModule()->get('auth/me')->throw()->collect()->first(); + $user = Http::pastoralModule()->connectTimeout(300)->get('auth/me')->throw()->collect()->first(); } catch (\Exception $e) { Log::error($e->getMessage(), $e->getTrace()); return $result->failed('Error thrown whilst trying to access Pastoral Module API User');