-
Notifications
You must be signed in to change notification settings - Fork 15
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
removeFriend Parameter #12
Comments
same problem. try something like this (its work for me) };` |
you need to convert your id, which is most likely a string to a mongoose type object id. |
Thank you, it worked for me |
Within the removeFriend function, what is expected when asking for user1 and user2 ? When given the "_id" field, it does not return an error but does not remove each user from the friends attribute. In requestFriend, the parameters are user1._id and user2._id so I was thinking delete would be the same.
The text was updated successfully, but these errors were encountered: