From 65cb0c44a696b8138b50b03c4dfa505ef670d171 Mon Sep 17 00:00:00 2001 From: Fred Bradley Date: Wed, 21 Aug 2024 16:06:59 +0100 Subject: [PATCH] get methods around the other way --- app/Http/HealthChecks/PastoralModuleApiConnectionCheck.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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');