aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/JSON.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/JSON.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/JSON.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/JSON.pm b/perllib/FixMyStreet/App/Controller/JSON.pm
index cbd483f16..37df98735 100644
--- a/perllib/FixMyStreet/App/Controller/JSON.pm
+++ b/perllib/FixMyStreet/App/Controller/JSON.pm
@@ -80,7 +80,7 @@ sub problems : Local {
}
my $one_day = DateTime::Duration->new( days => 1 );
- my @problems = $c->model('DB::Problem')->site_restricted->search( {
+ my @problems = $c->cobrand->problems->search( {
$date_col => {
'>=' => $start_dt,
'<=' => $end_dt + $one_day,