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

Commit 650a79e

Browse files
committed
Merge branch 'develop' of github.com:topcoder-platform/topcoder-x-processor into develop
2 parents d85c903 + 32e44a0 commit 650a79e

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ The following config parameters are supported, they are defined in `config/defau
5555
|AUTH0_CLIENT_SECRET| The Auth0 Client Secret for generating Machine-to-machine token ||
5656
|ROLE_ID_COPILOT| The registered role id of copilot ||
5757
|ROLE_ID_SUBMITTER| The registered role id of submitter ||
58-
|TYPE_ID_FIRST2FINISH| The registered type id of first 2 finish challenge ||
58+
|TYPE_ID_TASK| The registered type id of a task ||
5959
|DEFAULT_TIMELINE_TEMPLATE_ID| The default timeline template id ||
6060
|TC_API_URL| The topcoder backend API url |`https://api.topcoder-dev.com/v5`|
6161
|TC_API_URL_V3| The topcoder backend API url V3 |`https://api.topcoder-dev.com/v3`|

config/default.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ module.exports = {
7272
WEBSITE_SECURE: process.env.WEBSITE_SECURE || 'https://topcoderx.topcoder-dev.com',
7373

7474
ROLE_ID_COPILOT: process.env.ROLE_ID_COPILOT || 'cfe12b3f-2a24-4639-9d8b-ec86726f76bd',
75-
ROLE_ID_SUBMITTER: process.env.ROLE_ID_SUBMITTER || '0bc7e20e-cf08-4051-b6e5-421d69e492ac',
76-
TYPE_ID_FIRST2FINISH: process.env.TYPE_ID_FIRST2FINISH || '927abff4-7af9-4145-8ba1-577c16e64e2e',
77-
DEFAULT_TIMELINE_TEMPLATE_ID: process.env.DEFAULT_TIMELINE_TEMPLATE_ID || '6969125a-a12f-4b89-8de6-e66b0056f36b',
75+
ROLE_ID_SUBMITTER: process.env.ROLE_ID_SUBMITTER || '732339e7-8e30-49d7-9198-cccf9451e221',
76+
TYPE_ID_TASK: process.env.TYPE_ID_TASK || 'ecd58c69-238f-43a4-a4bb-d172719b9f31',
77+
DEFAULT_TIMELINE_TEMPLATE_ID: process.env.DEFAULT_TIMELINE_TEMPLATE_ID || '53a307ce-b4b3-4d6f-b9a1-3741a58f77e6',
7878
DEFAULT_TRACK_ID: process.env.DEFAULT_TIMELINE_TEMPLATE_ID || '9b6fc876-f4d9-4ccb-9dfd-419247628825'
7979
};

configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ The following config parameters are supported, they are defined in `config/defau
4141
|AUTH0_CLIENT_SECRET| The Auth0 Client Secret for generating Machine-to-machine token ||
4242
|ROLE_ID_COPILOT| The registered role id of copilot ||
4343
|ROLE_ID_SUBMITTER| The registered role id of submitter ||
44-
|TYPE_ID_FIRST2FINISH| The registered type id of first 2 finish challenge ||
44+
|TYPE_ID_TASK| The registered type id of a task ||
4545
|DEFAULT_TIMELINE_TEMPLATE_ID| The default timeline template id ||
4646
|TC_API_URL| The topcoder backend API url |`https://api.topcoder-dev.com/v5`|
4747
|TC_API_URL_V3| The topcoder backend API url V3 |`https://api.topcoder-dev.com/v3`|

utils/topcoder-api-helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ async function createProject(projectName) {
6666
async function createChallenge(challenge) {
6767
const apiKey = await getM2Mtoken();
6868
const body = _.assign({}, config.NEW_CHALLENGE_TEMPLATE, {
69-
typeId: config.TYPE_ID_FIRST2FINISH,
69+
typeId: config.TYPE_ID_TASK,
7070
name: challenge.name,
7171
description: challenge.detailedRequirements,
7272
prizeSets: [{

0 commit comments

Comments
 (0)