server: qBittorrent: return promises in AddFiles and AddURLs

So calling functions can catch errors.
This commit is contained in:
Jesse Chan
2020-11-25 20:15:53 +08:00
parent 4da59b7941
commit 972c3f6797
@@ -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,
})