Skip to content

Commit

Permalink
fix data visualiser plugin ES calls
Browse files Browse the repository at this point in the history
  • Loading branch information
walterra committed Aug 22, 2024
1 parent b636803 commit 7d33213
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions x-pack/plugins/data_visualizer/server/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ export function routes(coreSetup: CoreSetup<StartDeps, unknown>, logger: Logger)
async (context, request, response) => {
try {
const esClient = (await context.core).elasticsearch.client;
// @ts-expect-error types are wrong
const { endpoints } = await esClient.asCurrentUser.inference.getModel({
const { endpoints } = await esClient.asCurrentUser.inference.get({
inference_id: '_all',
});

Expand Down

0 comments on commit 7d33213

Please sign in to comment.