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

Method fetchByClassrooms

app/collections/CourseInstances.js:37–45  ·  view source on GitHub ↗
(classroomIds, options)

Source from the content-addressed store, hash-verified

35 }
36
37 fetchByClassrooms (classroomIds, options) {
38 if (options == null) { options = {} }
39 options = _.extend({
40 url: '/db/course_instance/-/by-classrooms'
41 }, options)
42 if (options.data == null) { options.data = {} }
43 options.data.classroomIds = classroomIds
44 return this.fetch(options)
45 }
46 }
47 CourseInstances.initClass()
48 return CourseInstances

Callers 1

constructorMethod · 0.80

Calls 1

fetchMethod · 0.45

Tested by

no test coverage detected