mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-17 11:11:04 +01:00
fix crash in topic move
This commit is contained in:
@@ -77,7 +77,9 @@ module.exports = function(Categories) {
|
|||||||
db.incrObjectFieldBy('category:' + newCid, 'post_count', postCount, next);
|
db.incrObjectFieldBy('category:' + newCid, 'post_count', postCount, next);
|
||||||
}
|
}
|
||||||
], function(err) {
|
], function(err) {
|
||||||
|
if (err) {
|
||||||
winston.error(err.message);
|
winston.error(err.message);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user