express-validator use custom validator in validation schema
I’m trying to use custom
validator in my validation schema as an object that takes a function but it’s not working, it returns back with an error that says: this.validator is not a function
but not the message i’ve put when throwing the error in the function
express-validator use custom validator in validation schema
I’m trying to use custom
validator in my validation schema as an object that takes a function but it’s not working, it returns back with an error that says: this.validator is not a function
but not the message i’ve put when throwing the error in the function
express-validator use custom validator in validation schema
I’m trying to use custom
validator in my validation schema as an object that takes a function but it’s not working, it returns back with an error that says: this.validator is not a function
but not the message i’ve put when throwing the error in the function
express-validator use custom validator in validation schema
I’m trying to use custom
validator in my validation schema as an object that takes a function but it’s not working, it returns back with an error that says: this.validator is not a function
but not the message i’ve put when throwing the error in the function
check if any other users have the same email in express-validator
User wants to update their email, i have to check if any other users have it, if so then i return a message saying the email is already in use, i have to check all users but not the user who want to change it