Skip to content

Commit

Permalink
get methods around the other way
Browse files Browse the repository at this point in the history
  • Loading branch information
fredbradley committed Aug 21, 2024
1 parent 42bd23b commit 65cb0c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/HealthChecks/PastoralModuleApiConnectionCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 65cb0c4

Please sign in to comment.