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

Function save

app/core/api/levels.js:49–55  ·  view source on GitHub ↗
(level, options)

Source from the content-addressed store, hash-verified

47 },
48
49 save (level, options) {
50 if (options == null) { options = {} }
51 return fetchJson(`/db/level/${level._id}`, _.assign({}, options, {
52 method: 'POST',
53 json: level
54 }))
55 },
56
57 upsertSession (levelId, options) {
58 if (options == null) { options = {} }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected