Skip to content

Commit 6ffb3e0

Browse files
authored
Merge pull request #17 from topcoder-platform/revert-16-add-duration-field
Revert "include a new duration field"
2 parents 6567ede + 8bfab60 commit 6ffb3e0

File tree

3 files changed

+0
-6
lines changed

3 files changed

+0
-6
lines changed

src/scripts/createIndex.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ async function createIndex () {
2121
title: { type: 'text' },
2222
startDate: { type: 'date' },
2323
endDate: { type: 'date' },
24-
duration: { type: 'integer' },
2524
numPositions: { type: 'integer' },
2625
resourceType: { type: 'keyword' },
2726
rateType: { type: 'keyword' },
@@ -65,7 +64,6 @@ async function createIndex () {
6564
status: { type: 'keyword' },
6665
startDate: { type: 'date' },
6766
endDate: { type: 'date' },
68-
duration: { type: 'integer' },
6967
memberRate: { type: 'float' },
7068
customerRate: { type: 'float' },
7169
rateType: { type: 'keyword' },

src/services/JobProcessorService.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ processCreate.schema = {
7474
title: Joi.title().required(),
7575
startDate: Joi.date(),
7676
endDate: Joi.date(),
77-
duration: Joi.number().integer().min(1),
7877
numPositions: Joi.number().integer().min(1).required(),
7978
resourceType: Joi.string(),
8079
rateType: Joi.rateType(),
@@ -124,7 +123,6 @@ processUpdate.schema = {
124123
title: Joi.title(),
125124
startDate: Joi.date(),
126125
endDate: Joi.date(),
127-
duration: Joi.number().integer().min(1),
128126
numPositions: Joi.number().integer().min(1),
129127
resourceType: Joi.string(),
130128
rateType: Joi.rateType(),

src/services/ResourceBookingProcessorService.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ processCreate.schema = {
4040
jobId: Joi.string().uuid(),
4141
startDate: Joi.date(),
4242
endDate: Joi.date(),
43-
duration: Joi.number().integer().min(1),
4443
memberRate: Joi.number(),
4544
customerRate: Joi.number(),
4645
rateType: Joi.rateType().required(),
@@ -83,7 +82,6 @@ processUpdate.schema = {
8382
jobId: Joi.string().uuid(),
8483
startDate: Joi.date(),
8584
endDate: Joi.date(),
86-
duration: Joi.number().integer().min(1),
8785
memberRate: Joi.number(),
8886
customerRate: Joi.number(),
8987
rateType: Joi.rateType(),

0 commit comments

Comments
 (0)