diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2019-04-01 10:47:11 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2019-04-04 17:50:55 +0100 |
commit | 98e61f99be442523fdfb38e95d9a8c2132ea0405 (patch) | |
tree | 4640cacbaf8392cb7c4df332a3a7bc6b19fb7b47 /perllib/FixMyStreet/DB/Factories.pm | |
parent | 8ca5583e62b1c24128b8d691a8b5f5236ce99eef (diff) |
Factor to common FixMyStreet::MapIt call.
Diffstat (limited to 'perllib/FixMyStreet/DB/Factories.pm')
-rw-r--r-- | perllib/FixMyStreet/DB/Factories.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/DB/Factories.pm b/perllib/FixMyStreet/DB/Factories.pm index 4cbab4753..5af9ed38f 100644 --- a/perllib/FixMyStreet/DB/Factories.pm +++ b/perllib/FixMyStreet/DB/Factories.pm @@ -199,7 +199,7 @@ sub create_problem { package FixMyStreet::DB::Factory::Body; use parent -norequire, "FixMyStreet::DB::Factory::Base"; -use mySociety::MaPit; +use FixMyStreet::MapIt; __PACKAGE__->resultset(FixMyStreet::DB->resultset("Body")); @@ -208,7 +208,7 @@ __PACKAGE__->exclude(['area_id', 'categories']); __PACKAGE__->fields({ name => __PACKAGE__->callback(sub { my $area_id = shift->get('area_id'); - my $area = mySociety::MaPit::call('area', $area_id); + my $area = FixMyStreet::MapIt::call('area', $area_id); $area->{name}; }), body_areas => __PACKAGE__->callback(sub { |