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

Function getSessions

app/core/api/course-instances.js:22–26  ·  view source on GitHub ↗
({ courseInstanceID }, options)

Source from the content-addressed store, hash-verified

20 },
21
22 getSessions ({ courseInstanceID }, options) {
23 if (options == null) { options = {} }
24 const userID = options?.userID || me.id
25 return fetchJson(`/db/course_instance/${courseInstanceID}/course-level-sessions/${userID}`, options)
26 },
27
28 getMyCourseInstanceSessions ({ courseInstanceID }, options = {}) {
29 return fetchJson(`/db/course_instance/${courseInstanceID}/course-level-sessions/${me.id}`, options)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected