Closed tadejg closed 1 year ago
This PR resolves issue #94 - this.ownerDocument inside of post("save") is always a function in latest versions of mongoose
this.ownerDocument
post("save")
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.
This PR resolves issue #94 -
this.ownerDocument
inside ofpost("save")
is always a function in latest versions of mongoose