Skip to content

Commit a614212

Browse files
committed
fixes community app issue 2259
1 parent 62ea4ea commit a614212

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/services/challenges.js

Lines changed: 12 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy