Skip to content

Commit 7551062

Browse files
authored
Merge pull request #217 from topcoder-platform/issue-4709
Updated legacy with challenge.type and challenge.track
2 parents 8bf92d9 + ab871c4 commit 7551062

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

Diff for: src/services/challenges.js

+1-12
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,6 @@ export function normalizeChallenge(challenge, username) {
5353
if (!challenge.tags) challenge.tags = [];
5454
if (!challenge.platforms) challenge.platforms = [];
5555

56-
if (challenge.type === 'Marathon Match') {
57-
challenge.legacy.track = 'DATA_SCIENCE';
58-
}
59-
/* eslint-enable no-param-reassign */
60-
6156
let submissionEndTimestamp = phases.filter(d => d.name === 'Submission')[0];
6257
if (submissionEndTimestamp) {
6358
submissionEndTimestamp = submissionEndTimestamp.scheduledEndDate;
@@ -539,15 +534,9 @@ class ChallengesService {
539534
* @return {Promise} Resolves to the api response.
540535
*/
541536
async getUserMarathonMatches(memberId, params) {
542-
const typeId = await this.getChallengeTypeId('DEVELOP_MARATHON_MATCH');
543-
544-
if (!typeId) {
545-
return null;
546-
}
547-
548537
const newParams = {
549538
...params,
550-
typeId,
539+
tag: 'Marathon Match',
551540
memberId,
552541
};
553542

0 commit comments

Comments
 (0)