Skip to content

Commit 129ed4a

Browse files
committed
Shrink API was not setting body correctly
1 parent 3f136b5 commit 129ed4a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Elasticsearch/Namespaces/IndicesNamespace.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,14 +248,16 @@ public function shrink($params = array())
248248
{
249249
$index = $this->extractArgument($params, 'index');
250250
$target = $this->extractArgument($params, 'target');
251+
$body = $this->extractArgument($params, 'body');
251252

252253
/** @var callback $endpointBuilder */
253254
$endpointBuilder = $this->endpoints;
254255

255256
/** @var \Elasticsearch\Endpoints\Indices\Shrink $endpoint */
256257
$endpoint = $endpointBuilder('Indices\Shrink');
257258
$endpoint->setIndex($index)
258-
->setTarget($target);
259+
->setTarget($target)
260+
->setBody($body);
259261

260262
return $this->performRequest($endpoint);
261263
}

0 commit comments

Comments
 (0)