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

Count method does not support paranoid option - please update code and patch? #6

Open
niftylettuce opened this issue Sep 8, 2018 · 5 comments
Assignees

Comments

@niftylettuce
Copy link

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 support options argument per the docs at https://mongoosejs.com/docs/api.html#model_Model.count. I suggest to implement a workaround for count somehow.

@euqen
Copy link
Owner

euqen commented Sep 10, 2018

@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 euqen self-assigned this Sep 10, 2018
@niftylettuce
Copy link
Author

@euqen would gladly donate if you could get this fixed!

@euqen
Copy link
Owner

euqen commented Sep 5, 2019

@niftylettuce hey. sorry for long fix, I will spend time and fix this ASAP

@niftylettuce
Copy link
Author

@euqen can you fix? cheers 🙏 🙇

@Manuel2u
Copy link

Manuel2u commented Oct 8, 2024

has it been fixed?

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

No branches or pull requests

3 participants