(levelId, options)
| 55 | }, |
| 56 | |
| 57 | upsertSession (levelId, options) { |
| 58 | if (options == null) { options = {} } |
| 59 | const data = {} |
| 60 | if (options.courseInstanceId) { |
| 61 | data.courseInstance = options.courseInstanceId |
| 62 | } |
| 63 | if (options.course) { |
| 64 | data.course = options.course |
| 65 | } |
| 66 | if (options.codeLanguage) { |
| 67 | data.codeLanguage = options.codeLanguage |
| 68 | } |
| 69 | const url = `/db/level/${levelId}/session` |
| 70 | return fetchJson(url, { data }) |
| 71 | }, |
| 72 | |
| 73 | // fetches interactive/cinematic/cutcsene data for the intro levels |
| 74 | fetchIntroContent (introLevels) { |
nothing calls this directly
no outgoing calls
no test coverage detected