Skip to content

Commit 7195efa

Browse files
deploy allow null
2 parents 8a0ca8a + b9c5520 commit 7195efa

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/services/JobService.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -332,10 +332,10 @@ partiallyUpdateJob.schema = Joi.object()
332332
jobTimezone: Joi.stringAllowEmpty().allow(null),
333333
currency: Joi.stringAllowEmpty().allow(null),
334334
roleIds: Joi.array().items(Joi.string().uuid().required()).allow(null),
335-
showInHotList: Joi.boolean().default(false),
336-
featured: Joi.boolean().default(false),
337-
hotListExcerpt: Joi.stringAllowEmpty().default(''),
338-
jobTag: Joi.jobTag().default('')
335+
showInHotList: Joi.boolean().default(false).allow(null),
336+
featured: Joi.boolean().default(false).allow(null),
337+
hotListExcerpt: Joi.stringAllowEmpty().default('').allow(null),
338+
jobTag: Joi.jobTag().default('').allow(null)
339339
})
340340
.required()
341341
})
@@ -376,10 +376,10 @@ fullyUpdateJob.schema = Joi.object().keys({
376376
jobTimezone: Joi.stringAllowEmpty().allow(null),
377377
currency: Joi.stringAllowEmpty().allow(null),
378378
roleIds: Joi.array().items(Joi.string().uuid().required()).default(null),
379-
showInHotList: Joi.boolean().default(false),
380-
featured: Joi.boolean().default(false),
381-
hotListExcerpt: Joi.stringAllowEmpty().default(''),
382-
jobTag: Joi.jobTag().default('')
379+
showInHotList: Joi.boolean().default(false).allow(null),
380+
featured: Joi.boolean().default(false).allow(null),
381+
hotListExcerpt: Joi.stringAllowEmpty().default('').allow(null),
382+
jobTag: Joi.jobTag().default('').allow(null)
383383
}).required()
384384
}).required()
385385

0 commit comments

Comments
 (0)