fix: add missing await

v1.18.x
Barış Soner Uşaklı 5 years ago
parent 9d153fd388
commit 4f1128fd2b

@ -179,7 +179,7 @@ module.exports = function (Posts) {
}
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);

Loading…
Cancel
Save