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) {
153153 job . createdAt = new Date ( )
154154 job . createdBy = await helper . getUserId ( currentUser . userId )
155155 job . status = 'sourcing'
156+ // hotfix to support update Project Service until we release TaaS API 1.5
157+ delete job . duration
156158
157159 const created = await Job . create ( job )
158160 await helper . postEvent ( config . TAAS_JOB_CREATE_TOPIC , job )
@@ -167,6 +169,8 @@ createJob.schema = Joi.object().keys({
167169 description : Joi . string ( ) ,
168170 title : Joi . title ( ) . required ( ) ,
169171 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 ) ,
170174 endDate : Joi . date ( ) ,
171175 numPositions : Joi . number ( ) . integer ( ) . min ( 1 ) . required ( ) ,
172176 resourceType : Joi . string ( ) ,
You can’t perform that action at this time.
0 commit comments