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

asf

parent 24ce1588
No related branches found
No related tags found
No related merge requests found
...@@ -225,7 +225,6 @@ axios.post(`https://api.spotify.com/v1/users/${userId}/playlists`, {name: playLi ...@@ -225,7 +225,6 @@ axios.post(`https://api.spotify.com/v1/users/${userId}/playlists`, {name: playLi
() => { () => {
db.run('DELETE FROM party_members WHERE party_id =?', db.run('DELETE FROM party_members WHERE party_id =?',
[req.params.id], () => { [req.params.id], () => {
return res.status(200);
} }
) )
}) })
...@@ -237,12 +236,14 @@ axios.post(`https://api.spotify.com/v1/users/${userId}/playlists`, {name: playLi ...@@ -237,12 +236,14 @@ axios.post(`https://api.spotify.com/v1/users/${userId}/playlists`, {name: playLi
}) })
}) })
} }
} }
).catch(err => {
console.log(err.data) return res.status(200);
})
}); });
const port = process.env.PORT || 8888 const port = process.env.PORT || 8888
console.log( console.log(
`Listening on port ${port}. Go /login to initiate authentication flow.`) `Listening on port ${port}. Go /login to initiate authentication flow.`)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment