set role in CreateEmployeeValidator to optional because it's automatically added by db.

This commit is contained in:
Sockenklaus
2021-11-04 23:02:43 +01:00
parent 4ff0b6656d
commit b0f695d253

View File

@@ -70,7 +70,7 @@ export default class CreateEmployeeValidator {
]
),
role: schema.string(
role: schema.string.optional(
{
trim: true
}