mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +01:00
inverted value required, double exclamation mark just casts as boolean
This commit is contained in:
@@ -276,7 +276,7 @@ var utils = require('./../public/src/utils.js'),
|
||||
|
||||
User.isEmailAvailable = function(email, callback) {
|
||||
RDB.exists('email:' + email + ':uid' , function(err, exists) {
|
||||
callback(err, !!!exists);
|
||||
callback(err, !exists);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user