diff --git a/src/scripts/createIndex.js b/src/scripts/createIndex.js index 45cca2e..c6986df 100644 --- a/src/scripts/createIndex.js +++ b/src/scripts/createIndex.js @@ -27,6 +27,7 @@ async function createIndex () { workload: { type: 'keyword' }, skills: { type: 'keyword' }, status: { type: 'keyword' }, + isApplicationPageActive: { type: 'boolean' }, createdAt: { type: 'date' }, createdBy: { type: 'keyword' }, updatedAt: { type: 'date' }, diff --git a/src/services/JobProcessorService.js b/src/services/JobProcessorService.js index a2e35a1..678a3c3 100644 --- a/src/services/JobProcessorService.js +++ b/src/services/JobProcessorService.js @@ -82,7 +82,8 @@ processCreate.schema = { createdBy: Joi.string().uuid().required(), updatedAt: Joi.date().allow(null), updatedBy: Joi.string().uuid().allow(null), - status: Joi.jobStatus().required() + status: Joi.jobStatus().required(), + isApplicationPageActive: Joi.boolean().required() }).required() }).required(), transactionId: Joi.string().required()