mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 08:25:46 +01:00
ESlint radix
This commit is contained in:
@@ -153,7 +153,7 @@ module.exports = function (Posts) {
|
||||
return callback(new Error('self-vote'));
|
||||
}
|
||||
|
||||
if (command === 'downvote' && parseInt(results.reputation) < parseInt(meta.config['privileges:downvote'], 10)) {
|
||||
if (command === 'downvote' && parseInt(results.reputation, 10) < parseInt(meta.config['privileges:downvote'], 10)) {
|
||||
return callback(new Error('[[error:not-enough-reputation-to-downvote]]'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user