backport crash fix

This commit is contained in:
Barış Soner Uşaklı
2018-10-25 12:05:32 -04:00
committed by GitHub
parent dbc7c2cc46
commit 5d3c814d57

View File

@@ -148,9 +148,7 @@ module.exports = function (Topics) {
}
if (parseInt(topicData[1].pinned, 10) !== 1) {
tasks.push(async.apply(db.sortedSetIncrBy, 'cid:' + topicData[1].cid + ':tids:posts', 1, toTid));
} else {
next();
}
}
async.series(tasks, function (err) {
next(err);
});