diff --git a/services/torrent-webui/src/server/services/TorrentClientIpc.ts b/services/torrent-webui/src/server/services/TorrentClientIpc.ts index 1e589a3..2c8129e 100644 --- a/services/torrent-webui/src/server/services/TorrentClientIpc.ts +++ b/services/torrent-webui/src/server/services/TorrentClientIpc.ts @@ -89,7 +89,7 @@ export default class TorrentClientIpc /** * Perform a general request to the torrent client */ - protected async request(method: string, message?: any) { + protected async request(method: string, ...message: any[]) { return new Promise((resolve, reject) => { if (!this.isConnected) { throw new Error("Not connected to torrent client"); @@ -140,6 +140,7 @@ export default class TorrentClientIpc console.error(response.error); throw new Error("Failed to obtain torrent list"); } + console.log("Response is:", response); return response.response; }