({ commit }, { clanId })
| 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) |
nothing calls this directly
no test coverage detected