mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[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:
parent
a76e2acaea
commit
0e882dda8a
1 changed files with 1 additions and 2 deletions
|
@ -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,
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue