mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-05-09 02:37:11 +02:00
fix(torrent): remove torrent h&r warning only when status value from true to false
This commit is contained in:
@@ -506,7 +506,8 @@ exports.toggleHnRStatus = function (req, res) {
|
||||
res.json(torrent);
|
||||
|
||||
//remove the complete data and update user`s warning number when the H&R prop to false
|
||||
removeTorrentHnRWarning(torrent._id);
|
||||
if (!torrent.torrent_hnr)
|
||||
removeTorrentHnRWarning(torrent._id);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user