Also fixed Torrent form fields

This commit is contained in:
Larvey
2022-06-20 17:26:13 -04:00
parent d654fb39e5
commit c3ceae4dc6
2 changed files with 59 additions and 48 deletions

View File

@@ -53,7 +53,7 @@ async function Post(req: NextApiRequest, res: NextApiResponse) {
...(
await new Transmission({
baseUrl: service.url,
username: service.username,
username: 'username' in service ? service.username : '',
password: 'password' in service ? service.password : '',
}).getAllData()
).torrents