Skip to content

Commit 14c831f

Browse files
authored
Merge pull request #49 from sumitdaga/community-app-issue-2259
fixes community app issue 2259
2 parents 480caef + a614212 commit 14c831f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/services/challenges.js

+12
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,18 @@ class ChallengesService {
453453
});
454454
}
455455

456+
/**
457+
* Gets marathon matches of the specified user.
458+
* @param {String} username User whose challenges we want to fetch.
459+
* @param {Object} filters Optional.
460+
* @param {Number} params Optional.
461+
* @return {Promise} Resolves to the api response.
462+
*/
463+
getUserMarathonMatches(username, filters, params) {
464+
const endpoint = `/members/${username.toLowerCase()}/mms/`;
465+
return this.private.getChallenges(endpoint, filters, params);
466+
}
467+
456468

457469
/**
458470
* Gets SRM matches related to the user.

0 commit comments

Comments
 (0)