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

Method addConnection

server/controllers/ChartController.js:258–269  ·  view source on GitHub ↗
(chartId, connection)

Source from the content-addressed store, hash-verified

256 }
257
258 addConnection(chartId, connection) {
259 return db.Chart.findByPk(chartId)
260 .then((chart) => {
261 return chart.addConnections([connection]);
262 })
263 .then((chart) => {
264 return this.findById(chart.id);
265 })
266 .catch((error) => {
267 return new Promise((resolve, reject) => reject(error));
268 });
269 }
270
271 updateDatasets(chartId, datasets) {
272 const updatePromises = [];

Callers

nothing calls this directly

Calls 1

findByIdMethod · 0.95

Tested by

no test coverage detected