({ commit }, { examId, includeArchived = false })
| 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) => { |
nothing calls this directly
no test coverage detected