You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to nodejs
Instead of converting req.params.id to an ObjectId try just passing in the string. That seems to be what it is expecting.
Also if this is mongoose and you're querying using the Model object then you can use findById. Your way isn't wrong and it will work fine but findById may be more readable.