MCPcopy Create free account
hub / github.com/codecombat/codecombat / get

Function get

app/core/api/background-job.js:15–22  ·  view source on GitHub ↗
(jobId, other, options = {})

Source from the content-addressed store, hash-verified

13}
14
15function 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
24async function pollTillResult (jobId, options = {}) {
25 let url = `/db/background-jobs/${jobId}`

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected