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

Function getCredits

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

Source from the content-addressed store, hash-verified

1const fetchJson = require('./fetch-json')
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', {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected