(model, attributes, options = {})
| 766 | } |
| 767 | |
| 768 | function 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 | } |
no test coverage detected