remove parseInts

This commit is contained in:
Barış Soner Uşaklı
2018-10-25 17:02:59 -04:00
parent aca50f1fe1
commit f3a679e268
42 changed files with 103 additions and 137 deletions

View File

@@ -25,7 +25,7 @@ module.exports = function (Topics) {
var tidToPost = {};
topics.forEach(function (topic) {
counts.push(topic && (parseInt(topic.postcount, 10) || 0));
counts.push(topic && topic.postcount);
if (topic) {
if (topic.teaserPid === 'null') {
delete topic.teaserPid;