(jobId, other, options = {})
| 13 | } |
| 14 | |
| 15 | function get (jobId, other, options = {}) { |
| 16 | let url = `/db/background-jobs/${jobId}` |
| 17 | if (other) { |
| 18 | // todo: move this logic into fetchJson |
| 19 | url = '/' + other + url |
| 20 | } |
| 21 | return fetchJson(url, options) |
| 22 | } |
| 23 | |
| 24 | async function pollTillResult (jobId, options = {}) { |
| 25 | let url = `/db/background-jobs/${jobId}` |
nothing calls this directly
no outgoing calls
no test coverage detected