Skip to content

Commit

Permalink
ImageSliderRepository::getHighestPosition position returned fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Oksydan committed Aug 24, 2023
1 parent f505995 commit d9175a0
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 d9175a0

Please sign in to comment.