Skip to content

Commit bf1cd0c

Browse files
Merge pull request #560 from topcoder-platform/gigs-change-aggs
Fix: 557
2 parents 0fde1bd + 432b0e5 commit bf1cd0c

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('').allow(null),
338-
jobTag: Joi.jobTag().default('').allow(null)
335+
showInHotList: Joi.boolean(),
336+
featured: Joi.boolean(),
337+
hotListExcerpt: Joi.stringAllowEmpty(),
338+
jobTag: Joi.jobTag()
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('').allow(null),
382-
jobTag: Joi.jobTag().default('').allow(null)
379+
showInHotList: Joi.boolean(),
380+
featured: Joi.boolean(),
381+
hotListExcerpt: Joi.stringAllowEmpty(),
382+
jobTag: Joi.jobTag()
383383
}).required()
384384
}).required()
385385

0 commit comments

Comments
 (0)