mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 08:37:05 +02:00
dont crash if topic is moved to pinned topic
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user