fix(torrents): fixed the list of the torrents memory limit of 104857600 bytes

This commit is contained in:
purebaba
2019-07-09 20:51:25 +08:00
parent 8dce35650c
commit e9390313a6

View File

@@ -1936,7 +1936,7 @@ exports.list = function (req, res) {
{
'$project': isHome ? populateStrings.populate_torrent_object_is_home : populateStrings.populate_torrent_object
}
]);
]).allowDiskUse(true);
if (limit === 0) {
var i = query._pipeline.length;