(job_id)
| 1 | import axios from './customInstance' |
| 2 | |
| 3 | export const getJobStats = async (job_id) => { |
| 4 | try { |
| 5 | const { data } = await axios.get(`/api/job/${job_id}/stat`) |
| 6 | return data |
| 7 | } catch(e) { |
| 8 | return { |
| 9 | completed: 0, |
| 10 | total: 0 |
| 11 | } |
| 12 | } |
| 13 | } |
| 14 | |
| 15 | export const getJobStatsForUser = async (job_id, user_id) => { |
| 16 | try { |