Skip to content

Commit 16e916c

Browse files
add default value
1 parent ee5ff4d commit 16e916c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/services/JobProcessorService.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,10 @@ processCreate.schema = Joi.object()
8888
roleIds: Joi.array()
8989
.items(Joi.string().uuid().required())
9090
.allow(null),
91-
showInHotList: Joi.boolean(),
92-
featured: Joi.boolean(),
93-
hotListExcerpt: Joi.stringAllowEmpty(),
94-
jobTag: Joi.jobTag()
91+
showInHotList: Joi.boolean().default(false),
92+
featured: Joi.boolean().default(false),
93+
hotListExcerpt: Joi.stringAllowEmpty().default(''),
94+
jobTag: Joi.jobTag().default('')
9595
})
9696
.required()
9797
})

0 commit comments

Comments
 (0)