MCPcopy Index your code
hub / github.com/codecombat/codecombat / fetchForCampaign

Method fetchForCampaign

app/collections/Levels.js:36–40  ·  view source on GitHub ↗
(campaignSlug, options)

Source from the content-addressed store, hash-verified

34 }
35
36 fetchForCampaign (campaignSlug, options) {
37 if (options == null) { options = {} }
38 options.url = `/db/campaign/${campaignSlug}/levels`
39 return this.fetch(options)
40 }
41
42 getSolutionsMap (languages) {
43 return this.models.reduce((map, level) => {

Callers 10

initializeMethod · 0.45
constructorMethod · 0.45
constructorMethod · 0.45
onCampaignsLoadedMethod · 0.45
onCampaignsLoadedMethod · 0.45
onCampaignsLoadedMethod · 0.45

Calls 1

fetchMethod · 0.45

Tested by

no test coverage detected