Skip to content
Snippets Groups Projects
Commit 762c7e5e authored by Daniel Kovacs's avatar Daniel Kovacs
Browse files

request fix

parent 11b2b8f7
Branches
No related tags found
No related merge requests found
......@@ -113,7 +113,6 @@ app.post('/joinparty/:partyid', (req, res) => {
var config ={
headers: {Authorization: 'Bearer ' + req.body.token}
};
console.log(request.body.token)
let genres = [];
let genres_temp = [];
let trackNum=0;
......
......@@ -24,7 +24,13 @@ class Join extends Component {
onSubmit = param => async (e) => {
const response = await axios.post(`https://thespotifierapp.herokuapp.com/joinparty/${param.party_id}`,param)
const lofasz= {
...param,
token: this.state.token
}
console.log(lofasz)
const response = await axios.post(`https://thespotifierapp.herokuapp.com/joinparty/${param.party_id}`,lofasz)
console.log(response)
this.setState({joined:true})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment