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

Function incrementKeyValue

app/core/api/level-sessions.js:33–39  ·  view source on GitHub ↗
({ sessionID, key, value }, options)

Source from the content-addressed store, hash-verified

31 },
32
33 incrementKeyValue ({ sessionID, key, value }, options) {
34 if (value == null) { value = 1 }
35 return fetchJson(`/db/level.session/${sessionID}/key-value-db/${key}/increment`, _.merge({}, options, {
36 method: 'POST',
37 json: value
38 }))
39 },
40
41 fetchForClassroomMembers (classroomID, options) {
42 return fetchJson(`/db/classroom/${classroomID}/member-sessions`, _.merge({}, options, {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected