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

Function fetchInstancesForEvents

app/core/store/modules/events.js:12–18  ·  view source on GitHub ↗
(events)

Source from the content-addressed store, hash-verified

10import { getMembersByClassCode } from '../../api/classrooms'
11
12function fetchInstancesForEvents (events) {
13 const promises = []
14 for (const event of events) {
15 promises.push(getInstances(event._id))
16 }
17 return Promise.all(promises)
18}
19
20export default {
21 namespaced: true,

Callers 2

fetchAllEventsFunction · 0.85
fetchUserEventsFunction · 0.85

Calls 1

getInstancesFunction · 0.90

Tested by

no test coverage detected