File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -153,6 +153,8 @@ async function createJob (currentUser, job) {
153
153
job . createdAt = new Date ( )
154
154
job . createdBy = await helper . getUserId ( currentUser . userId )
155
155
job . status = 'sourcing'
156
+ // hotfix to support update Project Service until we release TaaS API 1.5
157
+ delete job . duration
156
158
157
159
const created = await Job . create ( job )
158
160
await helper . postEvent ( config . TAAS_JOB_CREATE_TOPIC , job )
@@ -167,6 +169,8 @@ createJob.schema = Joi.object().keys({
167
169
description : Joi . string ( ) ,
168
170
title : Joi . title ( ) . required ( ) ,
169
171
startDate : Joi . date ( ) ,
172
+ // hotfix to support update Project Service until we release TaaS API 1.5
173
+ duration : Joi . number ( ) . integer ( ) . min ( 1 ) . allow ( null ) ,
170
174
endDate : Joi . date ( ) ,
171
175
numPositions : Joi . number ( ) . integer ( ) . min ( 1 ) . required ( ) ,
172
176
resourceType : Joi . string ( ) ,
You can’t perform that action at this time.
0 commit comments