(trialRequest, options)
| 24 | }, |
| 25 | |
| 26 | update (trialRequest, options) { |
| 27 | if (!trialRequest._id) { |
| 28 | // eslint-disable-next-line prefer-promise-reject-errors |
| 29 | return Promise.reject('Trial request id missing') |
| 30 | } |
| 31 | return fetchJson(`/db/trial.request/update/${trialRequest._id}`, _.assign({}, options, { |
| 32 | method: 'PUT', |
| 33 | json: trialRequest |
| 34 | })) |
| 35 | } |
| 36 | } |
nothing calls this directly
no outgoing calls
no test coverage detected