User fixes
This commit is contained in:
1 parent
c82c9f3733
commit
6ae1a1d25e
2 files changed
+3
-2
No files matched your search
@@ -9,7 +9,8 @@ class UserModel extends BaseModel {
|
||||
static modelName = "User"
|
||||
static schema = {
|
||||
email: { type: String, required: true },
|
||||
passwordHash: { type: String },
|
||||
name: { type: String },
|
||||
password_hash: { type: String },
|
||||
metadata: { type: mongoose.Schema.Types.Mixed, default: {} },
|
||||
}
|
||||
}
|
||||
|
||||
@@ -143,7 +143,7 @@ class UserService extends BaseService {
|
||||
|
||||
return this.userModel_.updateOne(
|
||||
{ _id: user._id },
|
||||
{ $set: { password: hashedPassword } }
|
||||
{ $set: { password_hash: hashedPassword } }
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user