Skip to content

Commit

Permalink
Fix not updating the authorization header after getting a new access …
Browse files Browse the repository at this point in the history
…token
  • Loading branch information
thomaserlang committed Oct 14, 2024
1 parent 0f0104f commit 413af25
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tbot/twitch_bot/tasks/youtube_chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ async def youtube_request(
'update twitch_youtube set token=%s where channel_id=%s',
(yt['access_token'], channel_id),
)
params['Authorization'] = f'Bearer {yt["access_token"]}'

r = await client.request(
method,
Expand Down

0 comments on commit 413af25

Please sign in to comment.