Skip to content

Commit

Permalink
order fetch of last commits
Browse files Browse the repository at this point in the history
  • Loading branch information
fcuny committed Oct 3, 2010
1 parent 161add3 commit c36752e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jitterbug.pm
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ get '/' => sub {

my $last_commit =
schema->resultset('Commit')
->search( { projectid => $project->projectid }, {} )->single();
->search( { projectid => $project->projectid }, {order_by => {-desc => 'timestamp'}} )->first();

if ($last_commit) {
# XXX see what data to store here
Expand Down

0 comments on commit c36752e

Please sign in to comment.