Skip to content

Commit e4c580c

Browse files
committed
fix: allow setting schedule start date
1 parent 32df523 commit e4c580c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/services/ChallengeService.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2110,7 +2110,7 @@ fullyUpdateChallenge.schema = {
21102110
duration: Joi.number().integer().min(0),
21112111
isOpen: Joi.boolean(),
21122112
actualEndDate: Joi.date().allow(null),
2113-
scheduledStartDate: Joi.date().allow(null),,
2113+
scheduledStartDate: Joi.date().allow(null)
21142114
}).unknown(true)),
21152115
prizeSets: Joi.array().items(Joi.object().keys({
21162116
type: Joi.string().valid(_.values(constants.prizeSetTypes)).required(),
@@ -2217,7 +2217,8 @@ partiallyUpdateChallenge.schema = {
22172217
phaseId: Joi.id(),
22182218
duration: Joi.number().integer().min(0),
22192219
isOpen: Joi.boolean(),
2220-
actualEndDate: Joi.date().allow(null)
2220+
actualEndDate: Joi.date().allow(null),
2221+
scheduledStartDate: Joi.date().allow(null)
22212222
}).unknown(true)).min(1),
22222223
events: Joi.array().items(Joi.object().keys({
22232224
id: Joi.number().required(),

0 commit comments

Comments
 (0)