Hi, I wrote same codes as you commit in this repository but when putting a new user via postman, I face this error : ``` E:\learnJS\SocialNetwork\example-node-server\models\user.js:39 if (!user.isModified('password')) return callback(); ^ TypeError: Cannot read property 'isModified' of undefined ``` my codes: https://github.com/mmdsharifi/skillsharee and erro : https://github.com/mmdsharifi/skillsharee/blob/28814dce8b47e8dfe7910336360d6586019a03ac/models/user.js#L22
Hi,
I wrote same codes as you commit in this repository but when putting a new user via postman, I face this error :
my codes: https://github.com/mmdsharifi/skillsharee
and erro : https://github.com/mmdsharifi/skillsharee/blob/28814dce8b47e8dfe7910336360d6586019a03ac/models/user.js#L22