MCPcopy Index your code
hub / github.com/diffgram/diffgram / getJobStatsForProject

Function getJobStatsForProject

frontend/src/services/jobStatsServices.js:27–41  ·  view source on GitHub ↗
(project_string_id, user_id)

Source from the content-addressed store, hash-verified

25}
26
27export const getJobStatsForProject = async (project_string_id, user_id) => {
28 try {
29 const { data } = await axios.get(`/api/v1/project/${project_string_id}/stats-tasks`, {
30 params: {
31 user_id: user_id,
32 }
33 })
34 return data
35 } catch(e) {
36 return {
37 completed: 0,
38 total: 0
39 }
40 }
41}
42

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected