curated studios endpoint doesn't pass unnecessary token to api

This commit is contained in:
Ben Wheeler 2018-07-26 18:54:58 -04:00
parent 7cc2f61a2b
commit a60da11f8a
2 changed files with 3 additions and 4 deletions

View file

@ -404,11 +404,10 @@ module.exports.getProjectStudios = id => (dispatch => {
}); });
}); });
module.exports.getCuratedStudios = (username, token) => (dispatch => { module.exports.getCuratedStudios = (username) => (dispatch => {
dispatch(module.exports.setFetchStatus('curatedStudios', module.exports.Status.FETCHING)); dispatch(module.exports.setFetchStatus('curatedStudios', module.exports.Status.FETCHING));
api({ api({
uri: `/users/${username}/studios/curate`, uri: `/users/${username}/studios/curate`
authentication: token
}, (err, body, res) => { }, (err, body, res) => {
if (err) { if (err) {
dispatch(module.exports.setFetchStatus('curatedStudios', module.exports.Status.ERROR)); dispatch(module.exports.setFetchStatus('curatedStudios', module.exports.Status.ERROR));

View file

@ -76,7 +76,7 @@ class Preview extends React.Component {
this.props.getProjectInfo(this.state.projectId, token); this.props.getProjectInfo(this.state.projectId, token);
this.props.getRemixes(this.state.projectId, token); this.props.getRemixes(this.state.projectId, token);
this.props.getProjectStudios(this.state.projectId, token); this.props.getProjectStudios(this.state.projectId, token);
this.props.getCuratedStudios(username, token); this.props.getCuratedStudios(username);
this.props.getFavedStatus(this.state.projectId, username, token); this.props.getFavedStatus(this.state.projectId, username, token);
this.props.getLovedStatus(this.state.projectId, username, token); this.props.getLovedStatus(this.state.projectId, username, token);
} else { } else {