Skip to content

Commit 07cd177

Browse files
authored
Merge pull request #5 from trybeapp/move-scroll-id
refactor: move scroll ID to body param
2 parents 956119d + d9f5b12 commit 07cd177

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Connection.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,9 @@ public function scroll(string $scrollId, string $scrollTimeout = '30s', int $lim
310310
while (!$limit || $numResults < $limit) {
311311
// Execute a Scroll request
312312
$results = $this->connection->scroll([
313-
'scroll_id' => $scrollId,
313+
'body' => [
314+
'scroll_id' => $scrollId,
315+
],
314316
'scroll' => $scrollTimeout,
315317
]);
316318

0 commit comments

Comments
 (0)