Skip to content

Commit

Permalink
Merge pull request #1123 from metacpan/mickey/fix_recent_page_size
Browse files Browse the repository at this point in the history
  • Loading branch information
oalders authored Aug 28, 2023
2 parents 7a0350e + ec70c90 commit d87b275
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/MetaCPAN/Query/Release.pm
Original file line number Diff line number Diff line change
Expand Up @@ -829,6 +829,10 @@ sub _get_depended_releases {

sub recent {
my ( $self, $page, $page_size, $type ) = @_;
$page //= 1;
$page_size //= 10000;
$type //= '';

my $query;
my $from = ( $page - 1 ) * $page_size;

Expand Down

0 comments on commit d87b275

Please sign in to comment.