Skip to content

Commit 4326228

Browse files
committed
hardcode CHALLENGE_MIGRATION_APP_URL to prod
1 parent f8c6893 commit 4326228

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

config/default.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ module.exports = {
5959
PROJECTS_API_URL: process.env.PROJECTS_API_URL || 'http://localhost:4000/v5/projects',
6060
TERMS_API_URL: process.env.TERMS_API_URL || 'http://localhost:4000/v5/terms',
6161
CUSTOMER_PAYMENTS_URL: process.env.CUSTOMER_PAYMENTS_URL || 'https://api.topcoder-dev.com/v5/customer-payments',
62-
CHALLENGE_MIGRATION_APP_URL: process.env.CHALLENGE_MIGRATION_APP_URL || 'https://api.topcoder-dev.com/v5/challenge-migration',
62+
CHALLENGE_MIGRATION_APP_URL: process.env.CHALLENGE_MIGRATION_APP_URL || 'https://api.topcoder.com/v5/challenge-migration',
6363
// copilot resource role ids allowed to upload attachment
6464
COPILOT_RESOURCE_ROLE_IDS: process.env.COPILOT_RESOURCE_ROLE_IDS
6565
? process.env.COPILOT_RESOURCE_ROLE_IDS.split(',') : ['10ba038e-48da-487b-96e8-8d3b99b6d18b'],

src/common/helper.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ async function createResource (challengeId, memberHandle, roleId) {
447447
* @param {String} description The description
448448
* @param {String} type The type
449449
* @param {String} token The token
450-
* @returns
450+
* @returns
451451
*/
452452
async function createSelfServiceProject (name, description, type, token) {
453453
const projectObj = {
@@ -465,7 +465,8 @@ async function createSelfServiceProject (name, description, type, token) {
465465
* @param {String} roundId the round id
466466
*/
467467
async function getProjectIdByRoundId (roundId) {
468-
const url = `${config.CHALLENGE_MIGRATION_APP_URL}/getChallengeProjectId/${roundId}`
468+
// const url = `${config.CHALLENGE_MIGRATION_APP_URL}/getChallengeProjectId/${roundId}`
469+
const url = `https://api.topcoder.com/v5/challenge-migration/getChallengeProjectId/${roundId}`
469470
const res = await axios.get(url)
470471
return _.get(res, 'data.projectId')
471472
}

0 commit comments

Comments
 (0)