mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +01:00
!undefined = true
!!undefined = false !!!undefined = true !false = true !!false = false !!!false = true !true = false !!true = true !!!true = false when using isEmailAvailable (positive) in correlation with exists (positive) make sure that the outcome is a positive return (and not an inverted)
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