Adjust Add Torrent action payload

This commit is contained in:
John Furrow
2015-11-08 16:01:22 -08:00
parent 6c5aaa12b2
commit 334b3f48e8
2 changed files with 20 additions and 7 deletions

View File

@@ -1,9 +1,10 @@
import axios from 'axios';
export function addTorrent(hashes) {
export function addTorrents(urls, destination) {
return function(dispatch) {
return axios.post('/torrents/add', {
hashes
urls,
destination
})
.then((json = {}) => {
return json.data;
@@ -22,8 +23,6 @@ export function addTorrent(hashes) {
}
};
// CLIENT_RECEIVE_TRANSFER_DATA
export function fetchTransferData() {
return function(dispatch) {
return axios.get('/client/stats')