Skip to content

Commit d4acb50

Browse files
committed
Remove endDate from Job and add duration to Job
1 parent 02ce93e commit d4acb50

File tree

4 files changed

+2
-6
lines changed

4 files changed

+2
-6
lines changed

src/scripts/createIndex.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ async function createIndex () {
2020
description: { type: 'text' },
2121
title: { type: 'text' },
2222
startDate: { type: 'date' },
23-
endDate: { type: 'date' },
2423
numPositions: { type: 'integer' },
2524
resourceType: { type: 'keyword' },
2625
rateType: { type: 'keyword' },

src/services/JobCandidateProcessorService.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
* Jobcandidate Processor Service
33
*/
44

5-
const _ = require('lodash')
65
const Joi = require('@hapi/joi')
76
const logger = require('../common/logger')
87
const helper = require('../common/helper')
@@ -101,7 +100,7 @@ processCreate.schema = {
101100
updatedBy: Joi.string().uuid().allow(null),
102101
status: Joi.jobCandidateStatus().required(),
103102
externalId: Joi.string().allow(null),
104-
resume: Joi.string().uri().allow(null),
103+
resume: Joi.string().uri().allow(null)
105104
}).required()
106105
}).required(),
107106
transactionId: Joi.string().required()

src/services/JobProcessorService.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
* Job Processor Service
33
*/
44

5-
const _ = require('lodash')
65
const Joi = require('@hapi/joi')
76
const logger = require('../common/logger')
87
const helper = require('../common/helper')
@@ -73,7 +72,7 @@ processCreate.schema = {
7372
description: Joi.stringAllowEmpty().allow(null),
7473
title: Joi.title().required(),
7574
startDate: Joi.date().allow(null),
76-
endDate: Joi.date().allow(null),
75+
duration: Joi.number().integer().min(1).allow(null),
7776
numPositions: Joi.number().integer().min(1).required(),
7877
resourceType: Joi.stringAllowEmpty().allow(null),
7978
rateType: Joi.rateType().allow(null),

src/services/ResourceBookingProcessorService.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
* ResourceBooking Processor Service
33
*/
44

5-
const _ = require('lodash')
65
const Joi = require('@hapi/joi')
76
const logger = require('../common/logger')
87
const helper = require('../common/helper')

0 commit comments

Comments
 (0)