(status, options)
| 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 |
no test coverage detected