mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 20:45:58 +01:00
fix: unintentional parseInt during post purge
This commit is contained in:
@@ -115,7 +115,7 @@ module.exports = function (Posts) {
|
||||
incrObjectBulk.push([`category:${cid}`, { post_count: -posts.length }]);
|
||||
}
|
||||
|
||||
const postsByTopic = _.groupBy(postData, p => parseInt(p.tid, 10));
|
||||
const postsByTopic = _.groupBy(postData, p => String(p.tid));
|
||||
const topicPostCountTasks = [];
|
||||
const topicTasks = [];
|
||||
const zsetIncrBulk = [];
|
||||
|
||||
Reference in New Issue
Block a user