diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-01-02 12:25:50 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-01-03 14:22:30 +0000 |
commit | c900b5057c6d3a9c389a0d0ac8524ab2e3abd8f8 (patch) | |
tree | 02b49c7f2705ae733b7a12006c60a235fb5ebf27 /perllib/FixMyStreet/Cobrand/Angus.pm | |
parent | 39e549b3e1978cc5d6b29ba37f57ca90d3c391cb (diff) |
Add some new Body model helper methods.
And use the existing ones more.
Diffstat (limited to 'perllib/FixMyStreet/Cobrand/Angus.pm')
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Angus.pm | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Angus.pm b/perllib/FixMyStreet/Cobrand/Angus.pm index 056101574..87dcc1d96 100644 --- a/perllib/FixMyStreet/Cobrand/Angus.pm +++ b/perllib/FixMyStreet/Cobrand/Angus.pm @@ -72,9 +72,7 @@ sub temp_update_contacts { my $contact_rs = $self->{c}->model('DB::Contact'); - my $body = FixMyStreet::DB->resultset('Body')->search({ - 'body_areas.area_id' => $self->council_area_id, - }, { join => 'body_areas' })->first; + my $body = FixMyStreet::DB->resultset('Body')->for_areas($self->council_area_id)->first; my $_update = sub { my ($category, $field, $category_details) = @_; |