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

Method removeMember

app/models/CourseInstance.js:61–71  ·  view source on GitHub ↗
(userID, opts)

Source from the content-addressed store, hash-verified

59 }
60
61 removeMember (userID, opts) {
62 const options = {
63 url: _.result(this, 'url') + '/members',
64 type: 'DELETE',
65 data: { userID }
66 }
67 _.extend(options, opts)
68 const jqxhr = this.fetch(options)
69 if (userID === me.id) { me.set('courseInstances', _.without(me.get('courseInstances'), this.id)) }
70 return jqxhr
71 }
72
73 removeMembers (userIDs, opts) {
74 const options = {

Callers

nothing calls this directly

Calls 3

fetchMethod · 0.45
setMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected