({ dispatch }, uId)
| 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] |
nothing calls this directly
no test coverage detected