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

Method fetchForCourseInstance

app/models/Classroom.js:388–397  ·  view source on GitHub ↗
(courseInstanceID, options)

Source from the content-addressed store, hash-verified

386 }
387
388 fetchForCourseInstance (courseInstanceID, options) {
389 if (options == null) { options = {} }
390 if (!courseInstanceID) { return }
391 const CourseInstance = require('models/CourseInstance')
392 const courseInstance = _.isString(courseInstanceID) ? new CourseInstance({ _id: courseInstanceID }) : courseInstanceID
393 options = _.extend(options, {
394 url: _.result(courseInstance, 'url') + '/classroom'
395 })
396 return this.fetch(options)
397 }
398
399 inviteMembers (emails, recaptchaResponseToken, options) {
400 if (options == null) { options = {} }

Callers

nothing calls this directly

Calls 1

fetchMethod · 0.45

Tested by

no test coverage detected