Update AuthenticationManager.js

userId contains the whole user object. Hence, only use _id
This commit is contained in:
andreas-bulling 2021-02-22 09:41:18 +01:00 committed by GitHub
parent b50b0c1e91
commit abf1e76555
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -212,7 +212,7 @@ const AuthenticationManager = {
}
db.users.update(
{
_id: ObjectId(userId.toString())
_id: ObjectId(userId._id.toString())
},
{
$set: {