MCPcopy Create free account
hub / github.com/diffgram/diffgram / getJobStatsForUser

Function getJobStatsForUser

frontend/src/services/jobStatsServices.js:15–25  ·  view source on GitHub ↗
(job_id, user_id)

Source from the content-addressed store, hash-verified

13}
14
15export 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
27export const getJobStatsForProject = async (project_string_id, user_id) => {
28 try {

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected