mongodb-js / mongoose-autopopulate

Always populate() certain fields in your mongoose schemas
Apache License 2.0
221 stars 36 forks source link

Fix post save hook to work with mongoose 6.2 resolving issue #94 #95

Closed tadejg closed 1 year ago

tadejg commented 2 years ago

This PR resolves issue #94 - this.ownerDocument inside of post("save") is always a function in latest versions of mongoose

vkarpov15 commented 1 year ago

Was fixed in 0.16.1 with this commit: https://github.com/mongodb-js/mongoose-autopopulate/commit/a53245006154e1e38bf72f1c9f8117c3d2bd79f8 . Sorry we didn't respond to this PR.