Skip to content

Commit

Permalink
fix(twitch): add missing set of current view stats
Browse files Browse the repository at this point in the history
  • Loading branch information
sogehige committed Nov 13, 2021
1 parent c80559a commit 13485e5
Showing 1 changed file with 2 additions and 0 deletions.
@@ -1,3 +1,4 @@
import { stats } from '../../../helpers/api/stats.js';
import client from '../api/client';

import emitter from '~/helpers/interfaceEmitter';
Expand All @@ -13,6 +14,7 @@ async function updateChannelViewsAndBroadcasterType () {
if (getUserById) {
emitter.emit('set', '/services/twitch', 'profileImageUrl', getUserById.profilePictureUrl);
emitter.emit('set', '/services/twitch', 'broadcasterType', getUserById.broadcasterType);
stats.value.currentViews = getUserById.views;
}
} catch (e: unknown) {
if (e instanceof Error) {
Expand Down

0 comments on commit 13485e5

Please sign in to comment.