Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
klacabane committed May 28, 2022
1 parent d09c349 commit a2625b3
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ const getDsIndexTemplate = async (client: Client, dataStream: string) => {

const components = await Promise.all(
composedOf.map(async (component) => {
const { component_templates } = await client.cluster.getComponentTemplate({
name: component,
});
return component_templates[0].component_template.template;
const { component_templates: componentTemplates } = await client.cluster.getComponentTemplate(
{ name: component }
);
return componentTemplates[0].component_template.template;
})
);

Expand Down

0 comments on commit a2625b3

Please sign in to comment.