Skip to content

Commit

Permalink
Merge pull request #277 from solspace/fix/SFT-1021
Browse files Browse the repository at this point in the history
fix(SFT-1021): Fixed reoccurring events not returning when using batch calls
  • Loading branch information
kjmartens authored May 9, 2024
2 parents eec6b7a + 9d84df8 commit 6d543c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Empty file added Batch
Empty file.
5 changes: 5 additions & 0 deletions packages/plugin/src/Elements/Db/EventQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,11 @@ public function all($db = null): array
return $this->events;
}

public function batch($batchSize = null, $db = null): array
{
return array_chunk($this->all($db), $batchSize);
}

public function nth(int $n, ?Connection $db = null): null|array|Model
{
$this->all($db);
Expand Down

0 comments on commit 6d543c6

Please sign in to comment.