Incepere creare procese separate
This commit is contained in:
@@ -16,10 +16,9 @@ const usersRegisterModel = Joi.object({
|
||||
'string.min': 'Password must be at least {#limit} characters long',
|
||||
'string.max': 'Password must be at most {#limit} characters long'
|
||||
}),
|
||||
department: Joi.string().uuid().required().messages({
|
||||
department: Joi.string().required().messages({
|
||||
'any.required': 'Department ID is required',
|
||||
'string.empty': 'Department ID must not be empty',
|
||||
'string.uuid': 'Department ID must be a valid UUID'
|
||||
'string.empty': 'Department ID must not be empty'
|
||||
})
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user