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

Function fetchUserEvents

app/core/store/modules/events.js:126–130  ·  view source on GitHub ↗
({ dispatch }, uId)

Source from the content-addressed store, hash-verified

124 dispatch('setEventsInstances', { events, eventsInstances })
125 },
126 async fetchUserEvents ({ dispatch }, uId) {
127 const events = await getEventsByUser(uId)
128 const eventsInstances = await fetchInstancesForEvents(events)
129 dispatch('setEventsInstances', { events, eventsInstances })
130 },
131 setEventsInstances ({ commit }, { events, eventsInstances }) {
132 for (let i = 0; i < events.length; i++) {
133 const event = events[i]

Callers

nothing calls this directly

Calls 3

getEventsByUserFunction · 0.90
fetchInstancesForEventsFunction · 0.85
dispatchFunction · 0.85

Tested by

no test coverage detected