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

Function update

app/core/api/level-sessions.js:48–54  ·  view source on GitHub ↗
(levelSession, options)

Source from the content-addressed store, hash-verified

46 },
47
48 update (levelSession, options) {
49 if (options == null) { options = {} }
50 return fetchJson(`/db/level.session/${levelSession._id}`, _.assign({}, options, {
51 method: 'PUT',
52 json: levelSession
53 }))
54 },
55
56 fetchMySessions (levelOriginal, options) {
57 if (options == null) { options = {} }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected