Skip to content

Commit 863ff04

Browse files
Merge branch 'develop' of https://github.com/topcoder-platform/challenge-api into develop
2 parents 011c08c + a7ea4a7 commit 863ff04

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/services/ChallengeService.js

+5
Original file line numberDiff line numberDiff line change
@@ -799,6 +799,11 @@ async function createChallenge (currentUser, challenge, userToken) {
799799
// this will need to be updated to associate project terms with a roleId
800800
challenge.terms = await helper.validateChallengeTerms(challenge.terms || [])
801801

802+
// default the descriptionFormat
803+
if (!challenge.descriptionFormat) {
804+
challenge.descriptionFormat = 'markdown'
805+
}
806+
802807
if (challenge.phases && challenge.phases.length > 0) {
803808
challenge.endDate = helper.calculateChallengeEndDate(challenge)
804809
}

0 commit comments

Comments
 (0)