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

Function addCredits

app/core/api/user-credits.js:23–31  ·  view source on GitHub ↗
({ operation, credits, endDate, userId })

Source from the content-addressed store, hash-verified

21})
22
23const addCredits = ({ operation, credits, endDate, userId }) => fetchJson('/db/user-credits/extra-credits', {
24 method: 'POST',
25 json: {
26 operation,
27 credits,
28 endDate,
29 userId
30 }
31})
32
33module.exports = {
34 getCredits,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected