Build.pm: Don't get isChannel using buildproducts.

We now have a column for that, so no need for counting rows which was a
bit inefficient anyway, because we only would have needed the first row
in the result.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
aszlig
2015-04-21 08:09:25 +02:00
parent ba7402ed6c
commit ed361a0145
2 changed files with 3 additions and 7 deletions

View File

@ -108,10 +108,6 @@ sub build_GET {
# If this is an aggregate build, get its constituents.
$c->stash->{constituents} = [$c->stash->{build}->constituents_->search({}, {order_by => ["job"]})];
$c->stash->{isChannel} = $c->stash->{build}->buildproducts->search(
{type => "channel"}
)->count > 0;
}