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