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

Method revoke

app/models/Prepaid.js:119–126  ·  view source on GitHub ↗
(user, options)

Source from the content-addressed store, hash-verified

117 }
118
119 revoke (user, options) {
120 if (options == null) { options = {} }
121 options.url = _.result(this, 'url') + '/redeemers'
122 options.type = 'DELETE'
123 if (options.data == null) { options.data = {} }
124 options.data.userID = user.id || user
125 return this.fetch(options)
126 }
127
128 convertToProduct () {
129 return {

Callers 3

revokeLicensesFunction · 0.95
revokeUsersMethod · 0.80

Calls 1

fetchMethod · 0.45

Tested by

no test coverage detected