Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/services/challenges.js
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,18 @@ class ChallengesService {
});
}

/**
* Gets marathon matches of the specified user.
* @param {String} username User whose challenges we want to fetch.
* @param {Object} filters Optional.
* @param {Number} params Optional.
* @return {Promise} Resolves to the api response.
*/
getUserMarathonMatches(username, filters, params) {
const endpoint = `/members/${username.toLowerCase()}/mms/`;
return this.private.getChallenges(endpoint, filters, params);
}


/**
* Gets SRM matches related to the user.
Expand Down