Skip to content

Commit

Permalink
Revert "Latest by author can be any type of release."
Browse files Browse the repository at this point in the history
This reverts commit 2f7df32.

Closes #1240
  • Loading branch information
oalders committed Jul 3, 2014
1 parent fdc78db commit 0e51532
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/MetaCPAN/Web/Model/API/Release.pm
Expand Up @@ -73,7 +73,10 @@ sub latest_by_author {
filtered => {
query => { match_all => {} },
filter => {
and => [ { term => { author => uc($author) } }, ]
and => [
{ term => { author => uc($author) } },
{ term => { status => 'latest' } }
]
},
}
},
Expand Down

0 comments on commit 0e51532

Please sign in to comment.