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

Function saveModel

app/views/editor/level/LevelEditView.js:768–776  ·  view source on GitHub ↗
(model, attributes, options = {})

Source from the content-addressed store, hash-verified

766}
767
768function saveModel (model, attributes, options = {}) {
769 return new Promise((resolve, reject) => {
770 model.save(attributes, {
771 ...options,
772 success: (model, response) => resolve(response),
773 error: (model, response) => reject(response)
774 })
775 })
776}

Callers 2

savePracticeLevelsMethod · 0.85

Calls 1

saveMethod · 0.45

Tested by

no test coverage detected