fix(filters): fix filter cleanup on categories #51

This commit is contained in:
Alexey Kasyanchuk
2018-07-21 20:27:09 +03:00
parent bc64e73c45
commit cb4787b2c5
5 changed files with 21 additions and 10 deletions

View File

@ -19,6 +19,7 @@ module.exports = async ({
removeTorrentFromDB,
updateTorrentToDB,
checkTorrent,
setupTorrentRecord,
p2pStore,
feed
}) => {
@ -828,6 +829,7 @@ module.exports = async ({
}
forBigTable(sphinx, 'torrents', (torrent) => {
setupTorrentRecord(torrent)
if(!checkTorrent(torrent))
toRemove.push(torrent)
}, done)