MCPcopy Create free account
hub / github.com/codecombat/codecombat / getStudentCredits

Function getStudentCredits

app/core/api/user-credits.js:4–4  ·  view source on GitHub ↗
(action, student)

Source from the content-addressed store, hash-verified

2
3const getCredits = (action) => fetchJson(`/db/credits/${action}`)
4const getStudentCredits = (action, student) => fetchJson(`/db/user-credits/${action}?student=${student}`)
5
6const redeemCredits = ({ operation, id }) => fetchJson('/db/user-credits/redeem', {
7 method: 'POST',

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected