set role in CreateEmployeeValidator to optional because it's automatically added by db.
This commit is contained in:
@@ -70,7 +70,7 @@ export default class CreateEmployeeValidator {
|
|||||||
]
|
]
|
||||||
),
|
),
|
||||||
|
|
||||||
role: schema.string(
|
role: schema.string.optional(
|
||||||
{
|
{
|
||||||
trim: true
|
trim: true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user