mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: tests
This commit is contained in:
@@ -169,13 +169,16 @@ module.exports = function (Posts) {
|
||||
db.setObjectField(pids.map(pid => `post:${pid}`), 'uid', toUid),
|
||||
db.sortedSetRemoveBulk(bulkRemove),
|
||||
db.sortedSetAddBulk(bulkAdd),
|
||||
user.updatePostCount(toUid),
|
||||
user.incrementUserReputationBy(toUid, repChange),
|
||||
handleMainPidOwnerChange(postData, toUid),
|
||||
reduceCounters(postsByUser),
|
||||
updateTopicPosters(postData, toUid),
|
||||
]);
|
||||
|
||||
await Promise.all([
|
||||
user.updatePostCount(toUid),
|
||||
reduceCounters(postsByUser),
|
||||
]);
|
||||
|
||||
plugins.hooks.fire('action:post.changeOwner', {
|
||||
posts: _.cloneDeep(postData),
|
||||
toUid: toUid,
|
||||
|
||||
Reference in New Issue
Block a user