Skip to content

Commit 8c96c76

Browse files
committed
Bug fix: Chunking $count value fixed for setting query limit correctly
1 parent a710ae1 commit 8c96c76

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Eloquent/Builder.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ public function chunkByPit($count, callable $callback, $keepAlive = '1m'): bool
273273
{
274274
$this->enforceOrderBy();
275275
$this->query->keepAlive = $keepAlive;
276+
$this->query->limit = $count;
276277
$pitId = $this->query->openPit();
277278

278279
$searchAfter = null;

0 commit comments

Comments
 (0)