Skip to content

Commit

Permalink
Merge pull request #1314 from metacpan/haarg/versions-with-main-module
Browse files Browse the repository at this point in the history
add main_module to versions end point
  • Loading branch information
haarg authored Nov 5, 2024
2 parents d07acb3 + 9a73cd7 commit ff78f4c
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions lib/MetaCPAN/Query/Release.pm
Original file line number Diff line number Diff line change
Expand Up @@ -571,9 +571,17 @@ sub versions {
query => $query,
size => $size,
sort => [ { date => 'desc' } ],
_source => [
qw( name date author version status maturity authorized download_url)
],
_source => [ qw(
name
date
author
version
status
maturity
authorized
download_url
main_module
) ],
};

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

0 comments on commit ff78f4c

Please sign in to comment.