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

Method fetchPatchesWithStatus

app/models/CocoModel.js:595–605  ·  view source on GitHub ↗
(status, options)

Source from the content-addressed store, hash-verified

593 }
594
595 fetchPatchesWithStatus (status, options) {
596 if (status == null) { status = 'pending' }
597 if (options == null) { options = {} }
598 const Patches = require('../collections/Patches')
599 const patches = new Patches()
600 if (options.data == null) { options.data = {} }
601 options.data.status = status
602 options.url = this.urlRoot + '/' + (this.get('original') || this.id) + '/patches'
603 patches.fetch(options)
604 return patches
605 }
606
607 stringify () { return JSON.stringify(this.toJSON()) }
608

Callers 2

initPatchesMethod · 0.80
loadMethod · 0.80

Calls 2

getMethod · 0.95
fetchMethod · 0.45

Tested by

no test coverage detected