Skip to content

Commit

Permalink
Fix methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
roncli committed Dec 21, 2017
1 parent 16ed520 commit 399138a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/site/modules/chat/twitch/index.js
Expand Up @@ -592,7 +592,7 @@ class Twitch extends Chat {
const twitch = this, const twitch = this,
{api} = this; {api} = this;


return api.getTwitchUserByName(username).then((data) => data.id).then((id) => api.sendApiRequest(`users/${twitch.id}/follows/channel/${id}`, {requestOptions: {json: {notifications: !!notifications}}, method: "put", api: "kraken"})); return api.getTwitchUserByName(username).then((data) => data.id).then((id) => api.sendApiRequest(`users/${twitch.id}/follows/channel/${id}`, {requestOptions: {method: "PUT", json: {notifications: !!notifications}}, api: "kraken"}));
} }


// # ## ## // # ## ##
Expand All @@ -605,7 +605,7 @@ class Twitch extends Chat {
const twitch = this, const twitch = this,
{api} = this; {api} = this;


return api.getTwitchUserByName(username).then((data) => data.id).then((id) => api.sendApiRequest(`users/${twitch.id}/follows/channel/${id}`, {method: "delete", api: "kraken"})); return api.getTwitchUserByName(username).then((data) => data.id).then((id) => api.sendApiRequest(`users/${twitch.id}/follows/channel/${id}`, {requestOptions: {method: "DELETE"}, api: "kraken"}));
} }


// # ## # // # ## #
Expand Down Expand Up @@ -761,7 +761,7 @@ class Twitch extends Chat {
setStatus(channel, status) { setStatus(channel, status) {
const {api} = this; const {api} = this;


return api.getTwitchUserByName(channel).then((data) => data.id).then((id) => api.sendApiRequest(`channels/${id}`, {requestOptions: {json: {channel: status}}, method: "put", api: "kraken"})); return api.getTwitchUserByName(channel).then((data) => data.id).then((id) => api.sendApiRequest(`channels/${id}`, {requestOptions: {method: "PUT", json: {channel: status}}, api: "kraken"}));
} }
} }


Expand Down

0 comments on commit 399138a

Please sign in to comment.