fix: tests

This commit is contained in:
Barış Soner Uşaklı
2020-09-11 00:55:43 -04:00
parent 2d5bd153e0
commit 65d049c6f9
2 changed files with 1 additions and 2 deletions

View File

@@ -41,7 +41,6 @@ addons:
node_js: node_js:
- "14" - "14"
- "12" - "12"
- "10"
branches: branches:
only: only:
- master - master

View File

@@ -115,7 +115,7 @@ module.exports = function (Topics) {
const unreadTopics = _.unionWith(categoryTids, followedTids, (a, b) => a.value === b.value) const unreadTopics = _.unionWith(categoryTids, followedTids, (a, b) => a.value === b.value)
.filter(t => !ignoredTids.includes(t.value) && (!userReadTime[t.value] || t.score > userReadTime[t.value])) .filter(t => !ignoredTids.includes(t.value) && (!userReadTime[t.value] || t.score > userReadTime[t.value]))
.concat(tids_unread) .concat(tids_unread.filter(t => !ignoredTids.includes(t.value)))
.sort((a, b) => b.score - a.score); .sort((a, b) => b.score - a.score);
let tids = _.uniq(unreadTopics.map(topic => topic.value)).slice(0, 200); let tids = _.uniq(unreadTopics.map(topic => topic.value)).slice(0, 200);