(id, data)
| 112 | } |
| 113 | |
| 114 | update(id, data) { |
| 115 | return db.DataRequest.update(data, { |
| 116 | where: { id }, |
| 117 | }) |
| 118 | .then(() => { |
| 119 | return this.findById(id); |
| 120 | }) |
| 121 | .catch((error) => { |
| 122 | return new Promise((resolve, reject) => reject(error)); |
| 123 | }); |
| 124 | } |
| 125 | |
| 126 | async getBuilderMetadata(id, options = {}) { |
| 127 | const dataRequest = await this.findById(id); |
no test coverage detected