(id: string, props: Partial<Template>)
| 198 | }) |
| 199 | } |
| 200 | updateCreation(id: string, props: Partial<Template>): Promise<Template> { |
| 201 | return new Promise((resolve, reject) => { |
| 202 | this.base |
| 203 | .put(`/creations/${id}`, props) |
| 204 | .then(({ data }) => { |
| 205 | resolve(data) |
| 206 | }) |
| 207 | .catch((err) => reject(err)) |
| 208 | }) |
| 209 | } |
| 210 | |
| 211 | // ELEMENTS |
| 212 | getElements(): Promise<IElement[]> { |
nothing calls this directly
no outgoing calls
no test coverage detected