(job_id, user_id)
| 13 | } |
| 14 | |
| 15 | export const getJobStatsForUser = async (job_id, user_id) => { |
| 16 | try { |
| 17 | const { data } = await axios.get(`/api/job/${job_id}/user/${user_id}/stats`) |
| 18 | return data |
| 19 | } catch(e) { |
| 20 | return { |
| 21 | completed: 0, |
| 22 | total: 0 |
| 23 | } |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | export const getJobStatsForProject = async (project_string_id, user_id) => { |
| 28 | try { |