Skip to content

Commit

Permalink
limit entries outside subquery
Browse files Browse the repository at this point in the history
  • Loading branch information
pbogre committed Jul 28, 2023
1 parent 055441a commit d1a95d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Domain/Movie/MovieRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -682,9 +682,9 @@ public function fetchUniqueMoviesPaginated(
$whereQuery
GROUP BY m.id, title, release_date, watched_at, rating
ORDER BY $sortBySanitized $sortOrder, title asc
LIMIT $offset, $limit
) a
WHERE rn = 1
LIMIT $offset, $limit
SQL,
$payload,
);
Expand Down

0 comments on commit d1a95d4

Please sign in to comment.