MCPcopy Index your code
hub / github.com/chartbrew/chartbrew / update

Method update

server/controllers/DataRequestController.js:114–124  ·  view source on GitHub ↗
(id, data)

Source from the content-addressed store, hash-verified

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);

Callers 1

updateVariableBindingMethod · 0.45

Calls 1

findByIdMethod · 0.95

Tested by

no test coverage detected