Skip to content

Commit 0c5fa84

Browse files
authored
[ES 9.0] Remove body workaround (@elastic/obs-ux-management-team) (#217223)
## Summary Follow up to #213375: The latest version of the ES client fixed the issue elastic/elasticsearch-js#2584. We should be able to remove all usages of `// @ts-expect-error [email protected] https://github.com/elastic/elasticsearch-js/issues/2584`.
1 parent 3c2c59b commit 0c5fa84

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

x-pack/solutions/observability/plugins/observability/server/utils/create_or_update_index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ function updateExistingIndex({
9191
}) {
9292
return client.indices.putMapping({
9393
index,
94-
// @ts-expect-error [email protected] https://github.com/elastic/elasticsearch-js/issues/2584
95-
body: mappings,
94+
...mappings,
9695
});
9796
}

0 commit comments

Comments
 (0)