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

mongoose validating before softdelete #4

Closed
syiwawahyu opened this issue Dec 21, 2016 · 2 comments
Closed

mongoose validating before softdelete #4

syiwawahyu opened this issue Dec 21, 2016 · 2 comments
Assignees
Labels

Comments

@syiwawahyu
Copy link

I think your softdelete system is based on deleted field, but when i softdeleting, mongoose validating, and document not soft deleted. Can you help me? any config that i miss or this is a bug. Thank you before.

@riyadhalnur riyadhalnur self-assigned this Dec 21, 2016
@riyadhalnur
Copy link
Owner

The plugin will automatically add the deleted and deletedAt fields if they're not already present in the schema. Are you sure you're calling the softdelete method when deleting a document?

@riyadhalnur
Copy link
Owner

Closing due to inactivity.

Repository owner locked as resolved and limited conversation to collaborators Jan 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants