-
Notifications
You must be signed in to change notification settings - Fork 4
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
Count method does not support paranoid option - please update code and patch? #6
Comments
@niftylettuce thank you for reporting this issue. I'll make this changes as soon I have time for that. Or you can create pull request with changes that you purposed. Thanks |
@euqen would gladly donate if you could get this fixed! |
@niftylettuce hey. sorry for long fix, I will spend time and fix this ASAP |
@euqen can you fix? cheers 🙏 🙇 |
has it been fixed? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The line here should be changed https://github.com/euqen/mongoose-paranoid-plugin/blob/master/index.js#L19 to have prepend
method !== 'count' &&
since count method does not supportoptions
argument per the docs at https://mongoosejs.com/docs/api.html#model_Model.count. I suggest to implement a workaround for count somehow.The text was updated successfully, but these errors were encountered: