mirror of
https://github.com/zoriya/flood.git
synced 2026-06-06 03:56:42 +00:00
server: rTorrent: fix boolean response transformation in moveTorrents
Bug: #246
This commit is contained in:
@@ -310,8 +310,8 @@ class RTorrentClientGatewayService extends ClientGatewayService {
|
||||
}),
|
||||
])
|
||||
.then(this.processClientRequestSuccess, this.processRTorrentRequestError)
|
||||
.then((responses: string[][]) =>
|
||||
responses.map((response) => (typeof response === 'number' ? response : response?.[0])),
|
||||
.then((responses: string[][]): boolean[] =>
|
||||
responses.map((response) => (typeof response === 'number' ? response !== 0 : response?.[0] !== '0')),
|
||||
)
|
||||
.catch(() => undefined);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user