fix(feed): keep feed alive on down votes

This commit is contained in:
Alexey Kasyanchuk
2018-07-22 12:38:29 +03:00
parent 342f1bea38
commit f52d7891f3
2 changed files with 5 additions and 4 deletions

View File

@ -925,8 +925,8 @@ module.exports = async ({
if(torrent.good > 0 || torrent.bad > 0)
updateTorrentToDB(torrent)
// update feed
if(record.vote !== 'good')
// update feed only on some good info
if(torrent.good < 1)
return
feed.add(torrent)