mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-06-23 10:11:46 +02:00
backport crash fix
This commit is contained in:
committed by
GitHub
parent
dbc7c2cc46
commit
5d3c814d57
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user