Skip to content

Commit

Permalink
Removed needless calls to model settings (raw)
Browse files Browse the repository at this point in the history
Removed calls to 'raw' (ESX::Model) for the new API endpoints
which don't use the model for querying.

Changed all 'inflate(0)' calls to 'raw' (does the same) for
consistency.

Moved 'raw' calls from controllers back to the document where
possible (some cases will be dealt with later).
  • Loading branch information
mickeyn committed Jul 25, 2017
1 parent f32ad79 commit 75875e2
Show file tree
Hide file tree
Showing 20 changed files with 593 additions and 46 deletions.
2 changes: 1 addition & 1 deletion lib/MetaCPAN/Document/Release/Set.pm
Expand Up @@ -44,7 +44,7 @@ sub find {
{ term => { status => 'latest' } }
]
}
)->sort( [ { date => 'desc' } ] )->first;
)->sort( [ { date => 'desc' } ] )->raw->first;
return unless $file;

my $data = $file->{_source}
Expand Down

0 comments on commit 75875e2

Please sign in to comment.