FIX: broken details page - seedlinux - Torrent indexing tool opensource torrents with share ratio's etc.
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) commit 884526fd2dfb89157e0d60a31bd7e338acc5569c
(DIR) parent 2f35008b9493392a9c01e92326e2fcee14143610
(HTM) Author: Jay Scott <jay@jayscott.co.uk>
Date: Wed, 5 Jul 2017 21:18:41 +0100
FIX: broken details page
Diffstat:
M controllers/torrents_controller.js | 3 +++
1 file changed, 3 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/controllers/torrents_controller.js b/controllers/torrents_controller.js
@@ -87,6 +87,9 @@ exports.torrent_detail = function(req, res) {
},
torrent_data: function(callback) {
Torrent.find({ hash: req.params.id }, callback);
+ },
+ torrent_seeds: function(callback) {
+ getCount(callback);
}
},
function(err, results) {