File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -169,6 +169,7 @@ async function getMemberIdByHandle (handle) {
169
169
return profile . userId
170
170
} catch ( e ) {
171
171
// fall back to v3 api...
172
+ logger . warn ( `Get MemberID by Handle from Dynamo Failed, trying v3 Members API. Error: ${ JSON . stringify ( e ) } ` )
172
173
return getMemberIdByHandleFromV3Members ( handle )
173
174
}
174
175
}
Original file line number Diff line number Diff line change @@ -344,10 +344,11 @@ deleteResource.schema = {
344
344
* @returns {Array } an array of challenge ids represents challenges that given member has access to.
345
345
*/
346
346
async function listChallengesByMember ( memberId , criteria ) {
347
- const res = await helper . getRequest ( `${ config . USER_API_URL } ?filter=id=${ memberId } ` )
348
- if ( _ . get ( res , 'body.result.content' ) . length === 0 ) {
349
- throw new errors . BadRequestError ( `User with id: ${ memberId } doesn't exist` )
350
- }
347
+ // removing this call. If a member doesn't exist, it won't find any challenges
348
+ // const res = await helper.getRequest(`${config.USER_API_URL}?filter=id=${memberId}`)
349
+ // if (_.get(res, 'body.result.content').length === 0) {
350
+ // throw new errors.BadRequestError(`User with id: ${memberId} doesn't exist`)
351
+ // }
351
352
352
353
const boolQuery = [ ]
353
354
const mustQuery = [ ]
You can’t perform that action at this time.
0 commit comments