From 23e914ab4df143b2c54682fabed3b8d7eacd87f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20de=20Wit?= Date: Sat, 22 Sep 2018 19:27:42 +0200 Subject: [PATCH] Fix files downloading (#715) --- server/models/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/models/client.js b/server/models/client.js index a3f13794..9236b2f7 100644 --- a/server/models/client.js +++ b/server/models/client.js @@ -83,7 +83,7 @@ const client = { const selectedTorrent = services.torrentService.getTorrent(hash); if (!selectedTorrent) return res.status(404).json({error: 'Torrent not found.'}); - this.getTorrentDetails(user, hash, torrentDetails => { + this.getTorrentDetails(user, services, hash, torrentDetails => { if (!torrentDetails) return res.status(404).json({error: 'Torrent details not found'}); let files;