ADD: Required to role field in user
This commit is contained in:
@@ -34,6 +34,7 @@ const userSchema = new mongoose.Schema(
|
||||
role: {
|
||||
type: ObjectID,
|
||||
ref: 'Role',
|
||||
required: true
|
||||
},
|
||||
isAdmin: {
|
||||
type: Boolean,
|
||||
|
||||
Reference in New Issue
Block a user