diff --git a/src/scripts/createIndex.js b/src/scripts/createIndex.js index 50f7ba1..4edce30 100644 --- a/src/scripts/createIndex.js +++ b/src/scripts/createIndex.js @@ -21,7 +21,6 @@ async function createIndex () { title: { type: 'text' }, startDate: { type: 'date' }, endDate: { type: 'date' }, - duration: { type: 'integer' }, numPositions: { type: 'integer' }, resourceType: { type: 'keyword' }, rateType: { type: 'keyword' }, @@ -65,7 +64,6 @@ async function createIndex () { status: { type: 'keyword' }, startDate: { type: 'date' }, endDate: { type: 'date' }, - duration: { type: 'integer' }, memberRate: { type: 'float' }, customerRate: { type: 'float' }, rateType: { type: 'keyword' }, diff --git a/src/services/JobProcessorService.js b/src/services/JobProcessorService.js index dbfce90..72131ed 100644 --- a/src/services/JobProcessorService.js +++ b/src/services/JobProcessorService.js @@ -74,7 +74,6 @@ processCreate.schema = { title: Joi.title().required(), startDate: Joi.date(), endDate: Joi.date(), - duration: Joi.number().integer().min(1), numPositions: Joi.number().integer().min(1).required(), resourceType: Joi.string(), rateType: Joi.rateType(), @@ -124,7 +123,6 @@ processUpdate.schema = { title: Joi.title(), startDate: Joi.date(), endDate: Joi.date(), - duration: Joi.number().integer().min(1), numPositions: Joi.number().integer().min(1), resourceType: Joi.string(), rateType: Joi.rateType(), diff --git a/src/services/ResourceBookingProcessorService.js b/src/services/ResourceBookingProcessorService.js index f7a77b6..23b1de3 100644 --- a/src/services/ResourceBookingProcessorService.js +++ b/src/services/ResourceBookingProcessorService.js @@ -40,7 +40,6 @@ processCreate.schema = { jobId: Joi.string().uuid(), startDate: Joi.date(), endDate: Joi.date(), - duration: Joi.number().integer().min(1), memberRate: Joi.number(), customerRate: Joi.number(), rateType: Joi.rateType().required(), @@ -83,7 +82,6 @@ processUpdate.schema = { jobId: Joi.string().uuid(), startDate: Joi.date(), endDate: Joi.date(), - duration: Joi.number().integer().min(1), memberRate: Joi.number(), customerRate: Joi.number(), rateType: Joi.rateType(),