Skip to content

Commit

Permalink
Merge pull request #33 from Oksydan/slider-position-fix
Browse files Browse the repository at this point in the history
ImageSliderRepository::getHighestPosition position returned fix
  • Loading branch information
Oksydan authored Aug 24, 2023
2 parents f505995 + d9175a0 commit 48d31aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Repository/ImageSliderRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function getHighestPosition(): int
$qb = $this
->createQueryBuilder('s')
->select('s.position')
->orderBy('s.position', 'ASC')
->orderBy('s.position', 'DESC')
->setMaxResults(1)
->getQuery();

Expand Down

0 comments on commit 48d31aa

Please sign in to comment.