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.

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
1 participant