diff --git a/src/services/TransmissionRPC.ts b/src/services/TransmissionRPC.ts index 724c2ba4..e803f86c 100644 --- a/src/services/TransmissionRPC.ts +++ b/src/services/TransmissionRPC.ts @@ -382,11 +382,11 @@ class TRPC { return result; } - async torrentAction(action: string, torrentId: number|Array, args: Record = {}){ + async torrentAction(action: string, torrentIds: Array, args: Record = {}){ if(action=="remove"){ this.invalidatePersitentData(); } - return this.rpcCall("torrent-"+action, Object.assign({ids:torrentId}, args)) + return this.rpcCall("torrent-"+action, Object.assign({ids:Object.values(torrentIds)}, args)) } async torrentAdd(args: Record = {}){