Spaces:
Sleeping
Sleeping
Merge pull request #43 from Modarb-Ai-Trainer:MoWafy001/issue38
Browse files
src/common/validations/user-register.validation.ts
CHANGED
@@ -170,7 +170,7 @@ export const userRegisterKeys = {
|
|
170 |
.required()
|
171 |
.items(
|
172 |
joi.string().valid(...Object.values(Injury))
|
173 |
-
.empty().
|
174 |
"string.base": "please enter a valid injuries",
|
175 |
"any.required": "injuries must be entered",
|
176 |
"string.empty": "injuries cannot be empty",
|
|
|
170 |
.required()
|
171 |
.items(
|
172 |
joi.string().valid(...Object.values(Injury))
|
173 |
+
.empty().optional().messages({
|
174 |
"string.base": "please enter a valid injuries",
|
175 |
"any.required": "injuries must be entered",
|
176 |
"string.empty": "injuries cannot be empty",
|