Skip to content

Commit

Permalink
Revert fix (keep *Action suffix removal)
Browse files Browse the repository at this point in the history
  • Loading branch information
welcoMattic committed Dec 23, 2021
1 parent 66b36fa commit f22e53f
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions src/Repository/SubmitRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,9 @@ public function findUserSubmitsByStatus(User $user, string $status): array
$qb = $this->createUserQueryBuilder($user)
->andWhere('s.status = :status')
->setParameter('status', $status)
->innerJoin('s.conference', 'c');

if (Submit::STATUS_ACCEPTED === $status) {
$qb->andWhere('c.startAt > :today')
->setParameter('today', new \DateTime());
}

if (Submit::STATUS_DONE === $status) {
$qb->andWhere('c.startAt <= :today')
->setParameter('today', new \DateTime());
}

$qb->orderBy('c.id', 'DESC');
->innerJoin('s.conference', 'c')
->orderBy('c.id', 'DESC')
;

return $qb->getQuery()->execute();
}
Expand Down

0 comments on commit f22e53f

Please sign in to comment.