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

@@ -168,7 +168,7 @@ module.exports = function (Posts) {
topics.updateLastPostTimeFromLastPid(postData.tid, next);
},
function (next) {
if (parseInt(topicData.pinned, 10) !== 1) {
if (!topicData.pinned) {
db.sortedSetIncrBy('cid:' + topicData.cid + ':tids:posts', -1, postData.tid, next);
} else {
next();