Incepere creare procese separate

This commit is contained in:
andrei-mihnea-cerbu
2024-04-03 23:22:38 +03:00
parent 038b809dd8
commit ffeebf1177
58 changed files with 913 additions and 479 deletions
+2 -3
View File
@@ -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'
})
});