hagopj13 / node-express-boilerplate

A boilerplate for building production-ready RESTful APIs using Node.js, Express, and Mongoose
MIT License
6.66k stars 1.98k forks source link

Resolution for issue #281 #282

Open JellyPies opened 6 months ago

JellyPies commented 6 months ago

Resolves issue #281 "Mongoose V5.5.3+ introduced .remove() deprecation" by updating the auth.service.js and user.service.js to use .deleteOne() as opposed to .remove() which now throws an error in updated mongoose versions V5.5.3 or higher.