Skip to content

Commit 25a4eac

Browse files
allow setting the actualEndDate to null
1 parent a517a2b commit 25a4eac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/ChallengeService.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1882,7 +1882,7 @@ fullyUpdateChallenge.schema = {
18821882
phaseId: Joi.id(),
18831883
duration: Joi.number().integer().min(0),
18841884
isOpen: Joi.boolean(),
1885-
actualEndDate: Joi.date()
1885+
actualEndDate: Joi.date().allow(null)
18861886
}).unknown(true)),
18871887
prizeSets: Joi.array().items(Joi.object().keys({
18881888
type: Joi.string().valid(_.values(constants.prizeSetTypes)).required(),
@@ -1986,7 +1986,7 @@ partiallyUpdateChallenge.schema = {
19861986
phaseId: Joi.id(),
19871987
duration: Joi.number().integer().min(0),
19881988
isOpen: Joi.boolean(),
1989-
actualEndDate: Joi.date()
1989+
actualEndDate: Joi.date().allow(null)
19901990
}).unknown(true)).min(1),
19911991
events: Joi.array().items(Joi.object().keys({
19921992
id: Joi.number().required(),

0 commit comments

Comments
 (0)