File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ module.exports = {
2323 AUTH0_PROXY_SERVER_URL : process . env . AUTH0_PROXY_SERVER_URL ,
2424
2525 TERMS_API_URL : process . env . TERMS_API_URL || 'https://api.topcoder-dev.com/v5/terms' ,
26- MEMBER_API_URL : process . env . MEMBER_API_URL || 'https://api.topcoder-dev.com/v3 /members' ,
26+ MEMBER_API_URL : process . env . MEMBER_API_URL || 'https://api.topcoder-dev.com/v5 /members' ,
2727 USER_API_URL : process . env . USER_API_URL || 'https://api.topcoder-dev.com/v3/users' ,
2828 CHALLENGE_API_URL : process . env . CHALLENGE_API_URL || 'http://localhost:4000/v5/challenges' ,
2929 CHALLENGE_PHASES_API_URL : process . env . CHALLENGE_PHASES_API_URL || 'https://api.topcoder-dev.com/v5/challenge-phases' ,
Original file line number Diff line number Diff line change @@ -177,13 +177,13 @@ async function getMemberIdByHandle (handle) {
177177async function getMemberIdByHandleFromV3Members ( handle ) {
178178 let memberId
179179 try {
180- logger . warn ( `getMemberIdByHandle ${ handle } from v3 ` )
180+ logger . warn ( `getMemberIdByHandle ${ handle } from v5 ` )
181181 const res = await getRequest ( `${ config . MEMBER_API_URL } /${ handle } ` )
182- if ( _ . get ( res , 'body.result.content. userId' ) ) {
183- memberId = String ( res . body . result . content . userId )
182+ if ( _ . get ( res , 'body.userId' ) ) {
183+ memberId = String ( res . body . userId )
184184 }
185185 // handle return from v3 API, handle and memberHandle are the same under case-insensitive condition
186- handle = _ . get ( res , 'body.result.content. handle' )
186+ handle = _ . get ( res , 'body.handle' )
187187 } catch ( error ) {
188188 // re-throw all error except 404 Not-Founded, BadRequestError should be thrown if 404 occurs
189189 if ( error . status !== 404 ) {
You can’t perform that action at this time.
0 commit comments