Skip to content

Commit 3e5d168

Browse files
authored
fix: setTorrent typo (#45)
fix: setTorrent typo
2 parents 817c2e9 + e388fc2 commit 3e5d168

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export class Transmission implements TorrentClient {
113113
*/
114114
async setTorrent(ids: TorrentIds, options: Partial<SetTorrentOptions> = {}) {
115115
options.ids = ids;
116-
const res = await this.request<DefaultResponse>('torrent-stop', options);
116+
const res = await this.request<DefaultResponse>('torrent-set', options);
117117
return res.body;
118118
}
119119

0 commit comments

Comments
 (0)