[ES 9.0] Remove body workaround (@elastic/obs-ux-management-team) (#217223)

## 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-07 14:57:24 +02:00 committed by GitHub
parent 3c2c59baac
commit 0c5fa84659
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -91,7 +91,6 @@ function updateExistingIndex({
}) {
return client.indices.putMapping({
index,
// @ts-expect-error elasticsearch@9.0.0 https://github.com/elastic/elasticsearch-js/issues/2584
body: mappings,
...mappings,
});
}