From d9f5b125607cb018066d04b721a9491ee42c1ada Mon Sep 17 00:00:00 2001 From: Will Taylor-Jackson Date: Thu, 18 Mar 2021 15:05:02 +0000 Subject: [PATCH] refactor: move scroll ID to body param --- src/Connection.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Connection.php b/src/Connection.php index 5ef0cdd..18b12e8 100644 --- a/src/Connection.php +++ b/src/Connection.php @@ -310,7 +310,9 @@ public function scroll(string $scrollId, string $scrollTimeout = '30s', int $lim while (!$limit || $numResults < $limit) { // Execute a Scroll request $results = $this->connection->scroll([ - 'scroll_id' => $scrollId, + 'body' => [ + 'scroll_id' => $scrollId, + ], 'scroll' => $scrollTimeout, ]);