mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-14 01:45:47 +01:00
fix: add missing await
This commit is contained in:
@@ -179,7 +179,7 @@ module.exports = function (Posts) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const postData = await Posts.getPostFields(pid, ['pid', 'uid', 'tid']);
|
const postData = await Posts.getPostFields(pid, ['pid', 'uid', 'tid']);
|
||||||
const newReputation = user.incrementUserReputationBy(postData.uid, type === 'upvote' ? 1 : -1);
|
const newReputation = await user.incrementUserReputationBy(postData.uid, type === 'upvote' ? 1 : -1);
|
||||||
|
|
||||||
await adjustPostVotes(postData, uid, type, unvote);
|
await adjustPostVotes(postData, uid, type, unvote);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user