dont crash if topic is moved to pinned topic

This commit is contained in:
Barış Soner Uşaklı
2018-10-25 11:55:11 -04:00
parent da22940b80
commit aca50f1fe1

View File

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