MCPcopy Create free account
hub / github.com/RealDevSquad/website-backend / getParticipantsofChallenges

Function getParticipantsofChallenges

controllers/challenge.js:51–59  ·  view source on GitHub ↗
(allChallenges)

Source from the content-addressed store, hash-verified

49 * @returns {Promise<participants|Array>}
50 */
51const getParticipantsofChallenges = async (allChallenges) => {
52 return allChallenges.map(async (challenge) => {
53 const participants = await challengeQuery.fetchParticipantsData(challenge.participants);
54 return {
55 ...challenge,
56 participants,
57 };
58 });
59};
60
61/**
62 * Suscribe user to a challenge

Callers 1

fetchChallengesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected