File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 3131 "lint:js" : " ./node_modules/.bin/eslint --ext .js,.jsx ." ,
3232 "test" : " npm run lint && npm run jest"
3333 },
34- "version" : " 1.2.0 " ,
34+ "version" : " 1.2.1 " ,
3535 "dependencies" : {
3636 "auth0-js" : " ^6.8.4" ,
3737 "config" : " ^3.2.0" ,
Original file line number Diff line number Diff line change @@ -453,12 +453,15 @@ class ChallengesService {
453453 */
454454 async getChallengeRegistrants ( challengeId ) {
455455 /* If no token provided, resource will return Submitter role only */
456- const roleId = this . private . tokenV3 ? await this . getRoleId ( 'Submitter' ) : '' ;
457- const params = {
456+ const roleId = this . private . tokenV3 ? await this . getRoleId ( 'Submitter' ) : null ;
457+ let params = {
458458 challengeId,
459- roleId,
460459 } ;
461460
461+ if ( roleId ) {
462+ params = { ...params , roleId } ;
463+ }
464+
462465 let registrants = await this . private . apiV5 . get ( `/resources?${ qs . stringify ( params ) } ` )
463466 . then ( checkErrorV5 ) . then ( res => res . result ) ;
464467
You can’t perform that action at this time.
0 commit comments