Skip to content

Commit

Permalink
Merge branch 'main' into chore/postgres-compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgorges authored Sep 2, 2024
2 parents e1e929b + d83d923 commit 3216471
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Repository/EventRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ public function findAllScheduledEvents(int $limit)
{
$now = new \DateTimeImmutable();
$queryBuilder = $this->createQueryBuilder('e');
$queryBuilder->where('e.enabled = :enabled')
$queryBuilder
->where('e.enabled = :enabled')
->andWhere(
$queryBuilder->expr()->orX(
$queryBuilder->expr()->gte('e.startDate', ':now'),
Expand Down

0 comments on commit 3216471

Please sign in to comment.