MCPcopy Create free account
hub / github.com/codecombat/codecombat / fetchTournamentsForClan

Function fetchTournamentsForClan

app/core/store/modules/clans.js:129–134  ·  view source on GitHub ↗
({ commit }, { clanId })

Source from the content-addressed store, hash-verified

127 },
128
129 async fetchTournamentsForClan ({ commit }, { clanId }) {
130 const tournaments = await getTournamentsByClan(clanId)
131 if (tournaments) {
132 commit('setTournaments', { clanId, tournaments: Object.values(tournaments)[0] })
133 }
134 },
135
136 async fetchAllTournaments ({ commit }, { userId }) {
137 const tournaments = await getTournamentsByMember(userId)

Callers

nothing calls this directly

Calls 1

getTournamentsByClanFunction · 0.90

Tested by

no test coverage detected