Skip to content

Commit 11e5921

Browse files
Merge pull request #573 from topcoder-platform/gigs-listing-rcrmstatus
Patch: allow rcrm reason to be empty
2 parents 18c8a80 + 2384e66 commit 11e5921

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
@@ -237,7 +237,7 @@ createJob.schema = Joi.object()
237237
hotListExcerpt: Joi.stringAllowEmpty().default(''),
238238
jobTag: Joi.jobTag().default(''),
239239
rcrmStatus: Joi.jobRcrmStatus().default('Open'),
240-
rcrmReason: Joi.string().allow(null).default(null)
240+
rcrmReason: Joi.stringAllowEmpty().allow(null).default(null)
241241
})
242242
.required(),
243243
onTeamCreating: Joi.boolean().default(false)
@@ -339,7 +339,7 @@ partiallyUpdateJob.schema = Joi.object()
339339
hotListExcerpt: Joi.stringAllowEmpty(),
340340
jobTag: Joi.jobTag(),
341341
rcrmStatus: Joi.jobRcrmStatus(),
342-
rcrmReason: Joi.string().allow(null)
342+
rcrmReason: Joi.stringAllowEmpty().allow(null)
343343
})
344344
.required()
345345
})
@@ -385,7 +385,7 @@ fullyUpdateJob.schema = Joi.object().keys({
385385
hotListExcerpt: Joi.stringAllowEmpty().default(''),
386386
jobTag: Joi.jobTag().default(''),
387387
rcrmStatus: Joi.jobRcrmStatus().default(null),
388-
rcrmReason: Joi.string().allow(null).default(null)
388+
rcrmReason: Joi.stringAllowEmpty().allow(null).default(null)
389389
}).required()
390390
}).required()
391391

0 commit comments

Comments
 (0)