Skip to content

Commit 885de82

Browse files
committed
Remove limit on statistics to DS / MM
1 parent ae5284c commit 885de82

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/services/ChallengeService.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1353,12 +1353,6 @@ getChallenge.schema = {
13531353
*/
13541354
async function getChallengeStatistics(currentUser, id) {
13551355
const challenge = await getChallenge(currentUser, id);
1356-
// for now, only Data Science challenges are supported
1357-
if (challenge.type !== "Challenge" && challenge.track !== "Data Science") {
1358-
throw new errors.BadRequestError(
1359-
`Challenge of type ${challenge.type} and track ${challenge.track} does not support statistics`
1360-
);
1361-
}
13621356
// get submissions
13631357
const submissions = await helper.getChallengeSubmissions(challenge.id);
13641358
// for each submission, load member profile

0 commit comments

Comments
 (0)