From ab871c458419d83e4f090a434fee135e15e63559 Mon Sep 17 00:00:00 2001 From: "Luiz R. Rodrigues" Date: Mon, 10 Aug 2020 00:01:43 -0300 Subject: [PATCH] Updated legacy with challenge.type and challenge.track --- src/services/challenges.js | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/services/challenges.js b/src/services/challenges.js index 05b8cad6..f24bdf5e 100644 --- a/src/services/challenges.js +++ b/src/services/challenges.js @@ -53,11 +53,6 @@ export function normalizeChallenge(challenge, username) { if (!challenge.tags) challenge.tags = []; if (!challenge.platforms) challenge.platforms = []; - if (challenge.type === 'Marathon Match') { - challenge.legacy.track = 'DATA_SCIENCE'; - } - /* eslint-enable no-param-reassign */ - let submissionEndTimestamp = phases.filter(d => d.name === 'Submission')[0]; if (submissionEndTimestamp) { submissionEndTimestamp = submissionEndTimestamp.scheduledEndDate; @@ -539,15 +534,9 @@ class ChallengesService { * @return {Promise} Resolves to the api response. */ async getUserMarathonMatches(memberId, params) { - const typeId = await this.getChallengeTypeId('DEVELOP_MARATHON_MATCH'); - - if (!typeId) { - return null; - } - const newParams = { ...params, - typeId, + tag: 'Marathon Match', memberId, }; pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy