Skip to content

Commit 5cbc36a

Browse files
authored
Merge pull request #928 from Grinnz/patch-2
Increase release limit for perl versions endpoint
2 parents 32a4580 + e6ca19c commit 5cbc36a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/MetaCPAN/Query/Release.pm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,9 +549,10 @@ sub all_by_author {
549549
sub versions {
550550
my ( $self, $dist ) = @_;
551551

552+
my $size = $dist eq 'perl' ? 1000 : 250;
552553
my $body = {
553554
query => { term => { distribution => $dist } },
554-
size => 250,
555+
size => $size,
555556
sort => [ { date => 'desc' } ],
556557
fields => [
557558
qw( name date author version status maturity authorized download_url)

0 commit comments

Comments
 (0)