File tree 2 files changed +12
-1
lines changed
2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 31
31
"lint:js" : " ./node_modules/.bin/eslint --ext .js,.jsx ." ,
32
32
"test" : " npm run lint && npm run jest"
33
33
},
34
- "version" : " 0.8.1 " ,
34
+ "version" : " 0.8.2 " ,
35
35
"dependencies" : {
36
36
"auth0-js" : " ^6.8.4" ,
37
37
"config" : " ^3.2.0" ,
Original file line number Diff line number Diff line change @@ -385,6 +385,17 @@ class ChallengesService {
385
385
return finalChallenge ;
386
386
}
387
387
388
+ /**
389
+ * Gets challenge registrants from Topcoder API.
390
+ * @param {Number|String } challengeId
391
+ * @return {Promise } Resolves to the challenge registrants array.
392
+ */
393
+ async getChallengeRegistrants ( challengeId ) {
394
+ const challenge = await this . private . api . get ( `/challenges/${ challengeId } ` )
395
+ . then ( checkError ) . then ( res => res . content ) ;
396
+ return challenge . registrants ;
397
+ }
398
+
388
399
/**
389
400
* Gets possible challenge subtracks.
390
401
* @return {Promise } Resolves to the array of subtrack names.
You can’t perform that action at this time.
0 commit comments