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

Method getLevelsByModules

app/models/Campaign.js:56–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54 }
55
56 getLevelsByModules () {
57 const campaignId = this.get('_id')
58 const isCh1 = utils.freeCampaignIds.includes(campaignId)
59 const levels = this.getLevels().models
60 const campaignLevels = {}
61 campaignLevels[campaignId] = {
62 modules: levelUtils.buildLevelsListByModule(levels, isCh1),
63 }
64 return campaignLevels
65 }
66
67 static fetchIntroContentDataForLevels (campaignLevelsModuleMap) {
68 let levels

Callers

nothing calls this directly

Calls 2

getLevelsMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected