fix groups reference

This commit is contained in:
Barış Soner Uşaklı
2023-07-12 20:43:53 -04:00
parent 43060f3cde
commit 2f8c301aba
2 changed files with 6 additions and 3 deletions

View File

@@ -112,7 +112,9 @@ module.exports = function (Topics) {
if (params.term === 'alltime' && !params.cids && !params.tags.length && params.filter !== 'watched' && !params.floatPinned) {
return tids;
}
const topicData = await Topics.getTopicsFields(tids, ['tid', 'lastposttime', 'upvotes', 'downvotes', 'postcount', 'pinned']);
const topicData = await Topics.getTopicsFields(tids, [
'tid', 'lastposttime', 'upvotes', 'downvotes', 'postcount', 'pinned',
]);
const sortMap = {
recent: sortRecent,
old: sortOld,