(action, student)
| 2 | |
| 3 | const getCredits = (action) => fetchJson(`/db/credits/${action}`) |
| 4 | const getStudentCredits = (action, student) => fetchJson(`/db/user-credits/${action}?student=${student}`) |
| 5 | |
| 6 | const redeemCredits = ({ operation, id }) => fetchJson('/db/user-credits/redeem', { |
| 7 | method: 'POST', |
nothing calls this directly
no outgoing calls
no test coverage detected