codepunkt / mongoose-patch-history

Mongoose plugin that saves a history of JSON patch operations for all documents belonging to a schema in an associated 'patches' collection
MIT License
96 stars 21 forks source link

Fix "cannot set property _original of null" error #98

Closed danielbayerlein closed 2 years ago

danielbayerlein commented 2 years ago

findOneAndUpdate with option { new: true } throws an error, if doc does not exist.

danielbayerlein commented 2 years ago

Is there a possibility to bring this fix in a new release?

danielbayerlein commented 2 years ago

@vinerich / @codepunkt Can we publish a new version?

vinerich commented 2 years ago

@codepunkt the release process did not work with github actions yet am I right?

danielbayerlein commented 1 year ago

@vinerich / @codepunkt A new release would be really helpful.