mirror of
https://git.unistra.fr/aius/root/ldap-overleaf-sl.git
synced 2024-10-05 23:23:59 +02:00
Update AuthenticationManager.js
userId contains the whole user object. Hence, only use _id
This commit is contained in:
parent
b50b0c1e91
commit
abf1e76555
@ -212,7 +212,7 @@ const AuthenticationManager = {
|
|||||||
}
|
}
|
||||||
db.users.update(
|
db.users.update(
|
||||||
{
|
{
|
||||||
_id: ObjectId(userId.toString())
|
_id: ObjectId(userId._id.toString())
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
$set: {
|
$set: {
|
||||||
|
Loading…
Reference in New Issue
Block a user