Skip to content

Commit

Permalink
typo(Event): repository variable
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgorges committed Aug 30, 2024
1 parent bf4e1e9 commit e1e929b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Repository/EventRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ public static function createEnabledCriteria(): Criteria
public function findAllScheduledEvents(int $limit)
{
$now = new \DateTimeImmutable();
$queryBuilder = $this->createQueryBuilder('e')
->where('e.enabled = :enabled')
$queryBuilder = $this->createQueryBuilder('e');
$queryBuilder->where('e.enabled = :enabled')
->andWhere(
$queryBuilder->expr()->orX(
$queryBuilder->expr()->gte('e.startDate', ':now'),
Expand Down

0 comments on commit e1e929b

Please sign in to comment.