Removed useless Elasticsearch request

This commit is contained in:
Jesús Ángel González 2018-05-16 15:47:39 +02:00 committed by Javier Castro
parent 848ec59741
commit b331932a7d

View File

@ -279,8 +279,6 @@ export default class WazuhElastic {
throw new Error('Missing parameters creating visualizations');
}
const apiConfig = (req.headers && req.headers.id) ? await this.wzWrapper.getWazuhConfigurationById(req.headers.id) : false;
const clusterName = apiConfig && apiConfig.cluster_info ? apiConfig.cluster_info.cluster : false;
const tabPrefix = req.params.tab.includes('overview') ?
'overview' :
'agents';