Skip to content

Commit 0e882dd

Browse files
authored
[ES 9.0] Remove body workaround (@elastic/kibana-management) (#217220)
## 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 a76e2ac commit 0e882dd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

x-pack/platform/plugins/shared/index_management/server/routes/api/data_streams/register_post_route.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ export function registerPostOneApplyLatestMappings({
5959
}
6060
await client.asCurrentUser.indices.putMapping({
6161
index: name,
62-
// @ts-expect-error [email protected] https://github.com/elastic/elasticsearch-js/issues/2584
63-
body: mappings,
62+
...mappings,
6463
write_index_only: true,
6564
});
6665

0 commit comments

Comments
 (0)