Open shamoons opened 4 years ago
I have:
const User = sequelize.define('User', {....... }) User.prototype.validatePassword = function(password /*: string*/ ) { return bcrypt.compareSync(password, this.password); }
ButI have an error:
TypeError: Cannot set property 'validatePassword' of undefined
I have:
ButI have an error: