fix error handling for history query

This commit is contained in:
Alexander Zobnin
2018-04-26 20:25:37 +03:00
parent f0a5e7de8d
commit a20395f024
3 changed files with 2 additions and 9 deletions

View File

@@ -417,9 +417,6 @@ System.register(['lodash', 'app/core/utils/datemath', './utils', './migrations',
return _this3.applyDataProcessingFunctions(timeseries, target); return _this3.applyDataProcessingFunctions(timeseries, target);
}).then(function (timeseries) { }).then(function (timeseries) {
return downsampleSeries(timeseries, options); return downsampleSeries(timeseries, options);
}).catch(function (error) {
console.log(error);
return [];
}); });
} }
}, { }, {

File diff suppressed because one or more lines are too long

View File

@@ -208,11 +208,7 @@ class ZabbixAPIDatasource {
return getHistoryPromise return getHistoryPromise
.then(timeseries => this.applyDataProcessingFunctions(timeseries, target)) .then(timeseries => this.applyDataProcessingFunctions(timeseries, target))
.then(timeseries => downsampleSeries(timeseries, options)) .then(timeseries => downsampleSeries(timeseries, options));
.catch(error => {
console.log(error);
return [];
});
} }
getTrendValueType(target) { getTrendValueType(target) {