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

Function fetchNextForCampaign

app/core/api/levels.js:41–47  ·  view source on GitHub ↗
({ campaignSlug, levelOriginal, includePractice = false }, options)

Source from the content-addressed store, hash-verified

39 },
40
41 fetchNextForCampaign ({ campaignSlug, levelOriginal, includePractice = false }, options) {
42 if (options == null) { options = {} }
43 options.data = options.data || {}
44 options.data.includePractice = includePractice
45 const url = `/db/campaign/${campaignSlug}/levels/${levelOriginal}/next`
46 return fetchJson(url, options)
47 },
48
49 save (level, options) {
50 if (options == null) { options = {} }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected