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

Function fetchAllEvents

app/core/store/modules/events.js:120–125  ·  view source on GitHub ↗
({ dispatch })

Source from the content-addressed store, hash-verified

118 commit('openPanel', { type, date })
119 },
120 async fetchAllEvents ({ dispatch }) {
121 const events = await getAllEvents()
122
123 const eventsInstances = await fetchInstancesForEvents(events)
124 dispatch('setEventsInstances', { events, eventsInstances })
125 },
126 async fetchUserEvents ({ dispatch }, uId) {
127 const events = await getEventsByUser(uId)
128 const eventsInstances = await fetchInstancesForEvents(events)

Callers

nothing calls this directly

Calls 3

getAllEventsFunction · 0.90
fetchInstancesForEventsFunction · 0.85
dispatchFunction · 0.85

Tested by

no test coverage detected