(chart)
| 950 | } |
| 951 | |
| 952 | runRequest(chart) { |
| 953 | return this.dataRequestController.sendRequest(chart.id, chart.connection_id) |
| 954 | .then((data) => { |
| 955 | return this.getChartData(chart.id, data); |
| 956 | }) |
| 957 | .then(() => { |
| 958 | return this.findById(chart.id); |
| 959 | }) |
| 960 | .catch((error) => { |
| 961 | return new Promise((resolve, reject) => reject(error)); |
| 962 | }); |
| 963 | } |
| 964 | |
| 965 | testQuery(chart) { |
| 966 | return this.connectionController.findById(chart.connection_id) |
no test coverage detected