Skip to content

Commit 489f2db

Browse files
committed
fix: streamer API client force user context
1 parent 27838e7 commit 489f2db

File tree

1 file changed

+5
-2
lines changed
  • src/backend/streaming-platforms/twitch/api

1 file changed

+5
-2
lines changed

src/backend/streaming-platforms/twitch/api/index.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import frontendCommunicator from "../../../common/frontend-communicator";
3434
import logger from "../../../logwrapper";
3535

3636
class TwitchApi {
37-
private _streamerClient: ApiClient;
37+
private _streamerClient: UserContextApiClient;
3838
private _botClient: UserContextApiClient;
3939

4040
constructor() {
@@ -134,7 +134,10 @@ class TwitchApi {
134134
}
135135

136136
if (AccountAccess.getAccounts().streamer.loggedIn) {
137-
this._streamerClient = new ApiClient({ authProvider: streamerProvider });
137+
this._streamerClient = new UserContextApiClient(
138+
{ authProvider: streamerProvider },
139+
AccountAccess.getAccounts().streamer.userId
140+
);
138141
}
139142

140143
if (AccountAccess.getAccounts().bot.loggedIn) {

0 commit comments

Comments
 (0)