Skip to content

Commit

Permalink
[APM] Read body from indicesStats in upload-telemetry-data
Browse files Browse the repository at this point in the history
  • Loading branch information
smith committed Jul 21, 2020
1 parent c3bd7ae commit 854f975
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/plugins/apm/scripts/upload-telemetry-data/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ async function uploadData() {
return client.search(body as any).then((res) => res.body);
},
indicesStats: (body) => {
return client.indices.stats(body as any);
return client.indices.stats(body as any).then((res) => res.body);
},
transportRequest: ((params) => {
return client.transport.request({
Expand Down

0 comments on commit 854f975

Please sign in to comment.