mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-03-03 18:51:09 +01:00
fixed other torrents number wrong
This commit is contained in:
@@ -493,6 +493,7 @@ exports.torrentByID = function (req, res, next, id) {
|
||||
if (err) {
|
||||
callback(err);
|
||||
} else {
|
||||
torrent._other_torrents.splice(0, torrent._other_torrents.length);
|
||||
torrents.forEach(function (t) {
|
||||
if (!t._id.equals(torrent._id)) {
|
||||
torrent._other_torrents.push(t);
|
||||
|
||||
Reference in New Issue
Block a user