Skip to content

Commit 0f8fa51

Browse files
committed
fix: allow empty for job locations and job timezone
1 parent bf32afb commit 0f8fa51

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).allow(''),
212-
jobTimezone: Joi.string().allow(null).allow(''),
213-
currency: Joi.string().allow(null).allow(''),
211+
jobLocation: Joi.stringAllowEmpty().allow(null),
212+
jobTimezone: Joi.stringAllowEmpty().allow(null),
213+
currency: Joi.stringAllowEmpty().allow(null),
214214
roleIds: Joi.array().items(Joi.string().uuid().required()),
215215
})
216216
.required(),

0 commit comments

Comments
 (0)