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

Function update

app/core/api/trial-requests.js:26–35  ·  view source on GitHub ↗
(trialRequest, options)

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected