mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-30 10:58:23 -05:00
curated studios endpoint doesn't pass unnecessary token to api
This commit is contained in:
parent
7cc2f61a2b
commit
a60da11f8a
2 changed files with 3 additions and 4 deletions
|
@ -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));
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue