aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perllib/FixMyStreet/DB/Result/Problem.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/DB/Result/Problem.pm b/perllib/FixMyStreet/DB/Result/Problem.pm
index b68c228b9..489c43090 100644
--- a/perllib/FixMyStreet/DB/Result/Problem.pm
+++ b/perllib/FixMyStreet/DB/Result/Problem.pm
@@ -530,7 +530,7 @@ has view_token => (
lazy => 1,
default => sub {
my $self = shift;
- my $token = FixMyStreet::App->model('DB::Token')->create({
+ my $token = FixMyStreet::DB->resultset('Token')->create({
scope => 'alert_to_reporter',
data => { id => $self->id }
});