dockerise server

This commit is contained in:
Jurgis Sakalauskas
2023-08-04 16:06:47 +03:00
parent 27f76a08f0
commit fe938afa3f
11 changed files with 81 additions and 28 deletions
+4 -1
View File
@@ -322,7 +322,10 @@ export class TorrentService {
const torrId = parseInt(id);
const result = await this.torrSeedClient
.addTorrentById(torrId)
.catch(() => false);
.catch((e) => {
console.log(e);
return false;
});
return new NotificationResponse(
result ? 'torrent added to transmission' : 'adding failed',