diff --git a/app/Clients/Consumer/ConsumerClient.php b/app/Clients/Consumer/ConsumerClient.php index 326b102..18d6c99 100644 --- a/app/Clients/Consumer/ConsumerClient.php +++ b/app/Clients/Consumer/ConsumerClient.php @@ -30,7 +30,7 @@ public function updateUser(User $user, Settings $settings): void $uri = $this->baseVersionedUrl.'/settings'; /** @var ConnectedAccount $account */ - $account = $user->accounts->first(fn ($account) => $account->provider == 'twitch'); + $account = $user->accounts()->where('provider', 'twitch')->first(); $payload = [ 'user_id' => (int) $account->provider_user_id,