mongoose-paranoid-plugin icon indicating copy to clipboard operation
mongoose-paranoid-plugin copied to clipboard

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

Open niftylettuce opened this issue 7 years ago • 5 comments

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.

niftylettuce avatar Sep 08 '18 21:09 niftylettuce

@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 avatar Sep 10 '18 15:09 euqen

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

niftylettuce avatar Sep 05 '19 07:09 niftylettuce

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

euqen avatar Sep 05 '19 07:09 euqen

@euqen can you fix? cheers 🙏 🙇

niftylettuce avatar May 27 '20 06:05 niftylettuce