Spaces:
Sleeping
Sleeping
Hozifa Elgharbawy
commited on
Commit
·
b867806
1
Parent(s):
83f35e6
preferred_days optional
Browse files
src/common/validations/user-register.validation.ts
CHANGED
@@ -133,7 +133,7 @@ export const userRegisterKeys = {
|
|
133 |
preferred_days: joi
|
134 |
.array()
|
135 |
.empty()
|
136 |
-
.
|
137 |
.items(
|
138 |
joi.string().valid(...Object.values(PreferredDay))
|
139 |
.empty().required().messages({
|
|
|
133 |
preferred_days: joi
|
134 |
.array()
|
135 |
.empty()
|
136 |
+
.optional()
|
137 |
.items(
|
138 |
joi.string().valid(...Object.values(PreferredDay))
|
139 |
.empty().required().messages({
|