Update AuthenticationManager.js
userId contains the whole user object. Hence, only use _id
This commit is contained in:
@@ -212,7 +212,7 @@ const AuthenticationManager = {
|
|||||||
}
|
}
|
||||||
db.users.update(
|
db.users.update(
|
||||||
{
|
{
|
||||||
_id: ObjectId(userId.toString())
|
_id: ObjectId(userId._id.toString())
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
$set: {
|
$set: {
|
||||||
|
|||||||
Reference in New Issue
Block a user