Closed maxsimych closed 4 years ago
Hey @maxsimych ! Could you provide us your plugin configuration? Thanks!
versions: node: 14.11.0 mongodb: 3.6.2 mongoose: 5.10.6 mongoose-patch-history: 2.0.0
config: { mongoose, name: 'ModelPatches', trackOriginalValue: true }
To get things started could you check the below two points?
{ new: true, rawResult: true }
set? Could you try the different combinations of both parameters and log that here?Model.plugin(patchHistory, config)
?Thanks !
I think I got you there. @codepunkt will close this issue when PR is merged, shouldn't take too long since it is a small fix. Hope that will do!
If there's anything else feel free to open another issue 😄
Merged into master, will be released in next patch release. Until it is, please install directly from GitHub.
Thanks to both of you 👍
When the plugin is added to Model and with that model I call:
Error is throwed: TypeError: document.data is not a function at mongoose-patch-history/lib/index.js:129:111