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

Method fetchByCreator

app/collections/Prepaids.js:46–51  ·  view source on GitHub ↗
(creatorID, opts)

Source from the content-addressed store, hash-verified

44 totalAvailable () { return Math.max(this.totalMaxRedeemers() - this.totalRedeemers(), 0) }
45
46 fetchByCreator (creatorID, opts) {
47 if (opts == null) { opts = {} }
48 if (opts.data == null) { opts.data = {} }
49 opts.data.creator = creatorID
50 return this.fetch(opts)
51 }
52
53 fetchMineAndShared () {
54 return this.fetchByCreator(me.id, { data: { includeShared: true } })

Callers 8

fetchMineAndSharedMethod · 0.95
fetchForClassroomMethod · 0.95
constructorMethod · 0.80
constructorMethod · 0.80
assignCourseMethod · 0.80
constructorMethod · 0.80
constructorMethod · 0.80
constructorMethod · 0.80

Calls 1

fetchMethod · 0.45

Tested by

no test coverage detected