Skip to content

Commit ff78f4c

Browse files
authored
Merge pull request #1314 from metacpan/haarg/versions-with-main-module
add main_module to versions end point
2 parents d07acb3 + 9a73cd7 commit ff78f4c

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

lib/MetaCPAN/Query/Release.pm

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -571,9 +571,17 @@ sub versions {
571571
query => $query,
572572
size => $size,
573573
sort => [ { date => 'desc' } ],
574-
_source => [
575-
qw( name date author version status maturity authorized download_url)
576-
],
574+
_source => [ qw(
575+
name
576+
date
577+
author
578+
version
579+
status
580+
maturity
581+
authorized
582+
download_url
583+
main_module
584+
) ],
577585
};
578586

579587
my $ret = $self->es->search( es_doc_path('release'), body => $body, );

0 commit comments

Comments
 (0)