Skip to content

Commit

Permalink
fix(compatibility): remove body property
Browse files Browse the repository at this point in the history
  • Loading branch information
yenienserrano committed Nov 8, 2022
1 parent a5d41f4 commit 07c43b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/controllers/wazuh-elastic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class WazuhElasticCtrl {
const data =
await awaitContext.elasticsearch.client.asInternalUser.cat.templates();

const templates = data.body;
const templates = data;
if (!templates || typeof templates !== 'string') {
throw new Error(
'An unknown error occurred when fetching templates from Elasticseach'
Expand Down

0 comments on commit 07c43b2

Please sign in to comment.