Skip to content

Commit 1951535

Browse files
Merge pull request #110 from topcoder-platform/dev
[Ready Release] Gigs Listing - RCRM Status Sync
2 parents d2ce4a9 + e5b1a98 commit 1951535

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/bootstrap.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ global.Promise = require('bluebird')
66

77
Joi.rateType = () => Joi.string().valid('hourly', 'daily', 'weekly', 'monthly', 'annual')
88
Joi.jobStatus = () => Joi.string().valid('sourcing', 'in-review', 'assigned', 'closed', 'cancelled')
9+
Joi.jobRcrmStatus = () => Joi.string().valid('Open', 'On Hold', 'Canceled', 'Draft', 'Closed').allow(null)
910
Joi.jobCandidateStatus = () => Joi.string().valid('open', 'placed', 'selected', 'client rejected - screening', 'client rejected - interview', 'rejected - other', 'cancelled', 'interview', 'topcoder-rejected', 'applied', 'rejected-pre-screen', 'skills-test', 'skills-test', 'phone-screen', 'job-closed', 'offered', 'withdrawn', 'withdrawn-prescreen')
1011
Joi.workload = () => Joi.string().valid('full-time', 'fractional')
1112
Joi.jobTag = () => Joi.string().valid('New', '$$$', 'Hot').allow('')

src/services/JobProcessorService.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ processCreate.schema = Joi.object()
9191
showInHotList: Joi.boolean().default(false),
9292
featured: Joi.boolean().default(false),
9393
hotListExcerpt: Joi.stringAllowEmpty().default(''),
94-
jobTag: Joi.jobTag().default('')
94+
jobTag: Joi.jobTag().default(''),
95+
rcrmStatus: Joi.jobRcrmStatus().default(null),
96+
rcrmReason: Joi.stringAllowEmpty().allow(null)
9597
})
9698
.required()
9799
})

0 commit comments

Comments
 (0)