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

Function fetchDataMyLicenses

app/core/store/modules/schoolAdminDashboard.js:243–252  ·  view source on GitHub ↗
({ state, dispatch }, options = {})

Source from the content-addressed store, hash-verified

241
242 // SchoolAdmin licenses page
243 async fetchDataMyLicenses ({ state, dispatch }, options = {}) {
244 const fetchPromises = []
245 fetchPromises.push(dispatch('prepaids/fetchPrepaidsForTeacher', { teacherId: state.schoolAdminId }, { root: true }))
246 fetchPromises.push(dispatch('fetchDataAdministratedTeachers', options)) // needed for classroom-membership-history
247
248 await Promise.all(fetchPromises)
249
250 // fetch async (doesnt block loading)
251 dispatch('fetchDataMyLicensesAsync', options)
252 },
253
254 // SchoolAdmin licenses page async - without blocking loading indicator
255 async fetchDataMyLicensesAsync ({ state, dispatch, getters }, options = {}) {

Callers

nothing calls this directly

Calls 1

dispatchFunction · 0.85

Tested by

no test coverage detected