Skip to content

Commit

Permalink
fix: payload to update user
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhe4rt committed Aug 27, 2024
1 parent 5c5a1d4 commit 8bcf0bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Clients/Consumer/ConsumerClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8bcf0bb

Please sign in to comment.