server: properly pass hashes to checkHash

This commit is contained in:
Jesse Chan
2020-09-28 10:18:32 +08:00
parent d19f1485d6
commit b6fe9bfdbe
+1 -2
View File
@@ -176,9 +176,8 @@ class ClientRequest {
});
}
checkHash(options) {
checkHash(hashes) {
const {torrentService} = this.services;
const hashes = getEnsuredArray(options.hashes);
const stoppedHashes = hashes.filter((hash) => torrentService.getTorrent(hash).status.includes('stopped'));
const hashesToStart = [];