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

Method fetchByOwner

app/collections/CourseInstances.js:21–27  ·  view source on GitHub ↗
(ownerID, options)

Source from the content-addressed store, hash-verified

19 }
20
21 fetchByOwner (ownerID, options) {
22 if (options == null) { options = {} }
23 ownerID = ownerID.id || ownerID // handle if they pass in a user
24 if (options.data == null) { options.data = {} }
25 options.data.ownerID = ownerID
26 return this.fetch(options)
27 }
28
29 fetchForClassroom (classroomID, options) {
30 if (options == null) { options = {} }

Callers

nothing calls this directly

Calls 1

fetchMethod · 0.45

Tested by

no test coverage detected