londonappbrewery / Authentication-Secrets

Companion Code for the Authentication Module on The Complete 2019 Web Development Bootcamp
https://www.appbrewery.co
440 stars 524 forks source link

MongooseError: Model.findById() no longer accepts a callback #41

Open Jpulisic27 opened 1 year ago

Jpulisic27 commented 1 year ago

Starting from Mongoose version 6.0.0, the save() method no longer accepts a callback function as a parameter