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

Function fetchUserExam

app/core/store/modules/exams.js:49–59  ·  view source on GitHub ↗
({ commit }, { examId, includeArchived = false })

Source from the content-addressed store, hash-verified

47 },
48
49 async fetchUserExam ({ commit }, { examId, includeArchived = false }) {
50 try {
51 const response = await getUserExam(examId, includeArchived)
52 commit('updateUserExam', {
53 examId,
54 userExam: response,
55 })
56 } catch (e) {
57 console.log(e)
58 }
59 },
60 },
61 getters: {
62 getExamById: (state) => (id) => {

Callers

nothing calls this directly

Calls 2

getUserExamFunction · 0.90
logMethod · 0.80

Tested by

no test coverage detected