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

Double request needed to delete operation #119

Closed
muhammederenozyurur opened this issue May 28, 2018 · 0 comments
Closed

Double request needed to delete operation #119

muhammederenozyurur opened this issue May 28, 2018 · 0 comments

Comments

@muhammederenozyurur
Copy link

I can't delete a row with the findOneAndDelete or other delete functions. On my first attempt to delete the user from the user list camo adds a row to the database like that one :

{"name":"Muhammed Eren Ozyurur","username":"mo","room":"mo","password":"123","access_permission":true,"_id":"yLZgB6N6foRR79R2"}
{"$$indexCreated":{"fieldName":"username","unique":true,"sparse":false}}
{"$$indexCreated":{"fieldName":"room","unique":true,"sparse":false}}
{"$$deleted":true,"_id":"yLZgB6N6foRR79R2"}

On my second attempt to delete the user it really deletes it from the file and returns me the valid res.send value. Also, if I do another operation with the document it really deletes it from the file, too. But of course without a res.send value.

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

1 participant