Skip to content

Commit f8698e7

Browse files
Merge pull request #616 from topcoder-platform/fix/plat-2529
change valid challenge statuses on create
2 parents 9842c8f + 5f8686d commit f8698e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/ChallengeService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1184,7 +1184,7 @@ createChallenge.schema = {
11841184
projectId: Joi.number().integer().positive(),
11851185
legacyId: Joi.number().integer().positive(),
11861186
startDate: Joi.date().iso(),
1187-
status: Joi.string().valid(_.values(constants.challengeStatuses)),
1187+
status: Joi.string().valid([constants.challengeStatuses.Active, constants.challengeStatuses.New, constants.challengeStatuses.Draft, constants.challengeStatuses.Approved]),
11881188
groups: Joi.array().items(Joi.optionalId()).unique(),
11891189
// gitRepoURLs: Joi.array().items(Joi.string().uri()),
11901190
terms: Joi.array().items(

0 commit comments

Comments
 (0)