[ES 9.0] Remove body workaround (@elastic/kibana-management) (#217220)

## Summary

Follow up to https://github.com/elastic/kibana/pull/213375: The latest
version of the ES client fixed the issue
https://github.com/elastic/elasticsearch-js/issues/2584.

We should be able to remove all usages of `// @ts-expect-error
elasticsearch@9.0.0
https://github.com/elastic/elasticsearch-js/issues/2584`.
This commit is contained in:
Alejandro Fernández Haro 2025-04-09 13:47:40 +02:00 committed by GitHub
parent a76e2acaea
commit 0e882dda8a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -59,8 +59,7 @@ export function registerPostOneApplyLatestMappings({
}
await client.asCurrentUser.indices.putMapping({
index: name,
// @ts-expect-error elasticsearch@9.0.0 https://github.com/elastic/elasticsearch-js/issues/2584
body: mappings,
...mappings,
write_index_only: true,
});