📦 💄 Upgrade packages and style

This commit is contained in:
ajnart
2022-06-07 10:36:47 +02:00
parent de0c625f88
commit b72afc2270
7 changed files with 82 additions and 94 deletions

View File

@@ -24,34 +24,34 @@ async function Post(req: NextApiRequest, res: NextApiResponse) {
}
if (qBittorrentService) {
torrents.push(
...((
...(
await new QBittorrent({
baseUrl: qBittorrentService.url,
username: qBittorrentService.username,
password: qBittorrentService.password,
}).getAllData()
).torrents)
).torrents
);
}
if (delugeService) {
torrents.push(
...((
...(
await new Deluge({
baseUrl: delugeService.url,
password: delugeService.password,
}).getAllData()
).torrents)
).torrents
);
}
if (transmissionService) {
torrents.push(
...((
...(
await new Transmission({
baseUrl: transmissionService.url,
username: transmissionService.username,
password: transmissionService.password,
}).getAllData()
).torrents)
).torrents
);
}
res.status(200).json(torrents);