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

Model.restore( ) method bug . #156

Open
DMT-011 opened this issue Jun 24, 2024 · 2 comments
Open

Model.restore( ) method bug . #156

DMT-011 opened this issue Jun 24, 2024 · 2 comments

Comments

@DMT-011
Copy link

DMT-011 commented Jun 24, 2024

When using this method it does not change the value of deleted field in mongodb to false instead it deletes this field.

@mareksuscak
Copy link

Fixed here: #157

@scaszoo
Copy link

scaszoo commented Oct 9, 2024

Depending on wether use$neOperator is set to true or false we get defective results either way at the moment:

use$neOperator: false
countDocuments (1), countDocumentsWithDeleted (6), countDocumentsDeleted (5)
==> restore()
countDocuments (1), countDocumentsWithDeleted (6), countDocumentsDeleted (3)
--> countDocuments should be (3)!

use$neOperator: true
countDocuments (1), countDocumentsWithDeleted (6), countDocumentsDeleted (5)
==> restore()
countDocuments (3), countDocumentsWithDeleted (6), countDocumentsDeleted (5)
--> countDocumentsDeleted should be (3)

It would be great if that/a solution could be published soon :) Thanks!

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