mirror of
https://github.com/zoriya/flood.git
synced 2026-06-05 19:54:18 +00:00
server: qBittorrent: return promises in AddFiles and AddURLs
So calling functions can catch errors.
This commit is contained in:
@@ -210,7 +210,7 @@ class ClientRequestManager {
|
||||
'Content-Length': form.getLengthSync(),
|
||||
});
|
||||
|
||||
axios
|
||||
return axios
|
||||
.post(`${this.apiBase}/torrents/add`, form, {
|
||||
headers,
|
||||
})
|
||||
@@ -234,7 +234,7 @@ class ClientRequestManager {
|
||||
'Content-Length': form.getLengthSync(),
|
||||
});
|
||||
|
||||
axios
|
||||
return axios
|
||||
.post(`${this.apiBase}/torrents/add`, form, {
|
||||
headers,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user