Removed the temporary hack to test it more in deep

This commit is contained in:
Jesús Ángel González 2018-04-10 17:21:56 +02:00
parent dbe1c8529e
commit 4a33962f5f

View File

@ -227,10 +227,6 @@ module.exports = (server, options) => {
const tmp = await wzWrapper.deleteVisualizationByDescription(req.params.timestamp);
///// TEMPORARY HACK /////////////////////////////////////////////////////////////
await elasticRequest.callWithInternalUser('indices.refresh', { index: ['.kibana']})
//////////////////////////////////////////////////////////////////////////////////
return res({acknowledge: true , output: tmp});
} catch(error){
@ -292,10 +288,6 @@ module.exports = (server, options) => {
const bulkBody = buildVisualizationsBulk(file,req.params.pattern,req.params.timestamp);
await wzWrapper.pushBulkToKibanaIndex(bulkBody);
///// TEMPORARY HACK /////////////////////////////////////////////////////////////
await elasticRequest.callWithInternalUser('indices.refresh', { index: ['.kibana']})
//////////////////////////////////////////////////////////////////////////////////
return res({acknowledge: true});
} catch(error){