Skip to content

Commit 6c13a45

Browse files
committed
handle new field isApplicationPageActive for Job
1 parent a3baa42 commit 6c13a45

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/scripts/createIndex.js

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ async function createIndex () {
2727
workload: { type: 'keyword' },
2828
skills: { type: 'keyword' },
2929
status: { type: 'keyword' },
30+
isApplicationPageActive: { type: 'boolean' },
3031
createdAt: { type: 'date' },
3132
createdBy: { type: 'keyword' },
3233
updatedAt: { type: 'date' },

src/services/JobProcessorService.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ processCreate.schema = {
8282
createdBy: Joi.string().uuid().required(),
8383
updatedAt: Joi.date().allow(null),
8484
updatedBy: Joi.string().uuid().allow(null),
85-
status: Joi.jobStatus().required()
85+
status: Joi.jobStatus().required(),
86+
isApplicationPageActive: Joi.boolean().required()
8687
}).required()
8788
}).required(),
8889
transactionId: Joi.string().required()

0 commit comments

Comments
 (0)