MCPcopy Index your code
hub / github.com/codecombat/codecombat / setStatus

Method setStatus

app/models/Patch.js:21–26  ·  view source on GitHub ↗
(status, options)

Source from the content-addressed store, hash-verified

19 }
20
21 setStatus (status, options) {
22 if (options == null) { options = {} }
23 options.url = `/db/patch/${this.id}/status`
24 options.type = 'PUT'
25 return this.save({ status }, options)
26 }
27
28 static setStatus (id, status) {
29 return $.ajax(`/db/patch/${id}/status`, { type: 'PUT', data: { status } })

Callers 3

acceptPatchMethod · 0.80
rejectPatchMethod · 0.80
withdrawPatchMethod · 0.80

Calls 1

saveMethod · 0.45

Tested by

no test coverage detected