Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set deleted to false instead of unsetting when calling restore() #150

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vkarpov15
Copy link

Fix Automattic/mongoose#14338

It looks like this commit: b8c3cea made it so that the restore() static would unset deleted versus setting it to false, which is backwards breaking for projects that use use$neOperator: false.

@mareksuscak
Copy link

I put up another PR that does this before seeing yours. Apologies. Here's mine: #157

@vkarpov15
Copy link
Author

@dsanel would you be open to transferring this project to the mongoosejs GitHub org and handing maintenance over to the Mongoose team? No pressure, this is your project if you want to keep maintaining it, I wanted to ask just in case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Model.restore is broken when using use$neOperator = false
2 participants