({ operation, id })
| 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', |
| 8 | json: { |
| 9 | operation, |
| 10 | id |
| 11 | } |
| 12 | }) |
| 13 | |
| 14 | const updateCreditUid = ({ operation, uid, newId }) => fetchJson('/db/user-credits/update-uid', { |
| 15 | method: 'PUT', |
nothing calls this directly
no outgoing calls
no test coverage detected