Skip to content

Commit d898555

Browse files
committed
fix: allow empty
1 parent 09368f1 commit d898555

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/services/JobService.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,9 @@ createJob.schema = Joi.object()
208208
minSalary: Joi.number().integer().allow(null),
209209
maxSalary: Joi.number().integer().allow(null),
210210
hoursPerWeek: Joi.number().integer().allow(null),
211-
jobLocation: Joi.string().allow(null).stringAllowEmpty(),
212-
jobTimezone: Joi.string().allow(null).stringAllowEmpty(),
213-
currency: Joi.string().allow(null).stringAllowEmpty(),
211+
jobLocation: Joi.string().allow(null).allow(''),
212+
jobTimezone: Joi.string().allow(null).allow(''),
213+
currency: Joi.string().allow(null).allow(''),
214214
roleIds: Joi.array().items(Joi.string().uuid().required()),
215215
})
216216
.required(),

0 commit comments

Comments
 (0)