Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit c365509

Browse files
Merge pull request #77 from topcoder-platform/PROD-2308_challenge-name-sync-issue
PROD-2308 Challenge Name Sync Issue -> develop
2 parents d09510b + 588fc74 commit c365509

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/services/challengeService.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ async function createChallenge (challenge) {
7878
*/
7979
async function updateChallenge (challenge) {
8080
try {
81-
const updateChallenge = new Challenge(_.omit(challenge, ['created', 'createdBy']))
81+
const updateChallenge = new Challenge(_.omit(challenge, ['created', 'createdBy', 'name']))
8282
// numOfSubmissions and numOfRegistrants are not stored in dynamo, they're calclated by the ES processor
8383
await Challenge.update({ id: challenge.id }, _.omit(updateChallenge, challengePropertiesToOmitFromDynamo))
8484
await getESClient().update({
@@ -88,7 +88,7 @@ async function updateChallenge (challenge) {
8888
id: challenge.id,
8989
body: {
9090
doc: {
91-
..._.omit(challenge, ['created', 'createdBy']),
91+
..._.omit(challenge, ['created', 'createdBy', 'name']),
9292
groups: _.filter(challenge.groups, g => _.toString(g).toLowerCase() !== 'null')
9393
}
9494
}
@@ -551,8 +551,8 @@ async function buildV5Challenge (legacyId, challengeListing, challengeDetails) {
551551
detailRequirement = challengeDetails.introduction + '<br />' + detailRequirement
552552
}
553553
if (_.get(challengeDetails, 'finalSubmissionGuidelines', '').trim() !== 'null' &&
554-
_.get(challengeDetails, 'finalSubmissionGuidelines', '').trim() !== '' &&
555-
_.get(challengeDetails, 'finalSubmissionGuidelines', '').trim() !== 'Please read above') {
554+
_.get(challengeDetails, 'finalSubmissionGuidelines', '').trim() !== '' &&
555+
_.get(challengeDetails, 'finalSubmissionGuidelines', '').trim() !== 'Please read above') {
556556
detailRequirement += '<br /><br /><h2>Final Submission Guidelines</h2>' + challengeDetails.finalSubmissionGuidelines
557557
}
558558
} else {

0 commit comments

Comments
 (0)