From e69c7ac360c0bc99bfb9bbc780c21edc0ad6746c Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 28 Aug 2013 09:02:28 +0000 Subject: [PATCH] "limit" -> "rows" --- src/lib/Hydra/Controller/Jobset.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/Hydra/Controller/Jobset.pm b/src/lib/Hydra/Controller/Jobset.pm index 2dc2aa3b..437b6bb5 100644 --- a/src/lib/Hydra/Controller/Jobset.pm +++ b/src/lib/Hydra/Controller/Jobset.pm @@ -50,7 +50,7 @@ sub jobset_GET { $c->stash->{evals} = getEvals($self, $c, scalar $c->stash->{jobset}->jobsetevals, 0, 10); - ($c->stash->{latestEval}) = $c->stash->{jobset}->jobsetevals->search({}, { limit => 1, order_by => ["id desc"] }); + ($c->stash->{latestEval}) = $c->stash->{jobset}->jobsetevals->search({}, { rows => 1, order_by => ["id desc"] }); $self->status_ok( $c, @@ -152,7 +152,7 @@ sub jobs_tab : Chained('jobsetChain') PathPart('jobs-tab') Args(0) { $c->stash->{inactiveJobs} = []; my $latestEval = $c->stash->{jobset}->jobsetevals->search( - { hasnewbuilds => 1}, { limit => 1, order_by => ["id desc"] })->single; + { hasnewbuilds => 1 }, { rows => 1, order_by => ["id desc"] })->single; my %activeJobs; if (defined $latestEval) {