Removed tmdb type from request

This commit is contained in:
2018-08-13 00:32:38 +02:00
parent 161c6db991
commit 1bed14c8c3

View File

@@ -87,7 +87,7 @@ export default {
}, },
sendTorrent(magnet, name){ sendTorrent(magnet, name){
axios.post(`https://api.kevinmidboe.com/api/v1/pirate/add`, { axios.post(`https://api.kevinmidboe.com/api/v1/pirate/add`, {
magnet: magnet, name: name, tmdb_id: this.tmdb_id, type: this.tmdb_type }, { headers: {authorization: storage.token} magnet: magnet, name: name, tmdb_id: this.tmdb_id }, { headers: {authorization: storage.token}
}) })
.catch((resp) => { console.log('error:', resp.data) }) .catch((resp) => { console.log('error:', resp.data) })
.then((resp) => { console.log('addTorrent resp: ', resp) }) .then((resp) => { console.log('addTorrent resp: ', resp) })