From b6fe9bfdbef0ff54aece40c5b05dacce3df7a239 Mon Sep 17 00:00:00 2001 From: Jesse Chan Date: Mon, 28 Sep 2020 10:18:32 +0800 Subject: [PATCH] server: properly pass hashes to checkHash --- server/models/ClientRequest.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/models/ClientRequest.js b/server/models/ClientRequest.js index 9701c8fa..23c1746c 100644 --- a/server/models/ClientRequest.js +++ b/server/models/ClientRequest.js @@ -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 = [];