File tree Expand file tree Collapse file tree 4 files changed +2
-6
lines changed Expand file tree Collapse file tree 4 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ async function createIndex () {
20
20
description : { type : 'text' } ,
21
21
title : { type : 'text' } ,
22
22
startDate : { type : 'date' } ,
23
- endDate : { type : 'date' } ,
24
23
numPositions : { type : 'integer' } ,
25
24
resourceType : { type : 'keyword' } ,
26
25
rateType : { type : 'keyword' } ,
Original file line number Diff line number Diff line change 2
2
* Jobcandidate Processor Service
3
3
*/
4
4
5
- const _ = require ( 'lodash' )
6
5
const Joi = require ( '@hapi/joi' )
7
6
const logger = require ( '../common/logger' )
8
7
const helper = require ( '../common/helper' )
@@ -101,7 +100,7 @@ processCreate.schema = {
101
100
updatedBy : Joi . string ( ) . uuid ( ) . allow ( null ) ,
102
101
status : Joi . jobCandidateStatus ( ) . required ( ) ,
103
102
externalId : Joi . string ( ) . allow ( null ) ,
104
- resume : Joi . string ( ) . uri ( ) . allow ( null ) ,
103
+ resume : Joi . string ( ) . uri ( ) . allow ( null )
105
104
} ) . required ( )
106
105
} ) . required ( ) ,
107
106
transactionId : Joi . string ( ) . required ( )
Original file line number Diff line number Diff line change 2
2
* Job Processor Service
3
3
*/
4
4
5
- const _ = require ( 'lodash' )
6
5
const Joi = require ( '@hapi/joi' )
7
6
const logger = require ( '../common/logger' )
8
7
const helper = require ( '../common/helper' )
@@ -73,7 +72,7 @@ processCreate.schema = {
73
72
description : Joi . stringAllowEmpty ( ) . allow ( null ) ,
74
73
title : Joi . title ( ) . required ( ) ,
75
74
startDate : Joi . date ( ) . allow ( null ) ,
76
- endDate : Joi . date ( ) . allow ( null ) ,
75
+ duration : Joi . number ( ) . integer ( ) . min ( 1 ) . allow ( null ) ,
77
76
numPositions : Joi . number ( ) . integer ( ) . min ( 1 ) . required ( ) ,
78
77
resourceType : Joi . stringAllowEmpty ( ) . allow ( null ) ,
79
78
rateType : Joi . rateType ( ) . allow ( null ) ,
Original file line number Diff line number Diff line change 2
2
* ResourceBooking Processor Service
3
3
*/
4
4
5
- const _ = require ( 'lodash' )
6
5
const Joi = require ( '@hapi/joi' )
7
6
const logger = require ( '../common/logger' )
8
7
const helper = require ( '../common/helper' )
You can’t perform that action at this time.
0 commit comments