Skip to content

Commit ff91b38

Browse files
committed
fix: added annunal, another rate type
1 parent 75b9baf commit ff91b38

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/bootstrap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const allowedXAITemplate = _.keys(Interviews.XaiTemplate)
1010

1111
Joi.page = () => Joi.number().integer().min(1).default(1)
1212
Joi.perPage = () => Joi.number().integer().min(1).default(20)
13-
Joi.rateType = () => Joi.string().valid('hourly', 'daily', 'weekly', 'monthly')
13+
Joi.rateType = () => Joi.string().valid('hourly', 'daily', 'weekly', 'monthly','annual')
1414
Joi.jobStatus = () => Joi.string().valid('sourcing', 'in-review', 'assigned', 'closed', 'cancelled')
1515
Joi.resourceBookingStatus = () => Joi.string().valid('placed', 'closed', 'cancelled')
1616
Joi.workload = () => Joi.string().valid('full-time', 'fractional')

src/services/JobCandidateService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ fullyUpdateJobCandidate.schema = Joi.object().keys({
203203
userId: Joi.string().uuid().required(),
204204
status: Joi.jobCandidateStatus().default('open'),
205205
externalId: Joi.string().allow(null).default(null),
206-
resume: Joi.string().stringAllowEmpty().uri().stringAllowEmpty().allow(null).default(null),
206+
resume: Joi.string().stringAllowEmpty().uri().allow(null).default(null),
207207
remark: Joi.string().stringAllowEmpty().allow(null).default(null)
208208
}).required()
209209
}).required()

0 commit comments

Comments
 (0)