diff options
author | Matthew Somerville <matthew@mysociety.org> | 2019-06-26 11:25:36 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2019-06-26 13:03:06 +0100 |
commit | 09c7f9d765e2a58c3e74eee0ed03612d19ee7f9f (patch) | |
tree | 378822f700570d4b3a0de9bd4cb1aede659c1bf2 /perllib/FixMyStreet/DB/ResultSet/Alert.pm | |
parent | 62b19194a099e6e5ac1140aea0ed42744cdff786 (diff) |
Turn on quote_names.
Diffstat (limited to 'perllib/FixMyStreet/DB/ResultSet/Alert.pm')
-rw-r--r-- | perllib/FixMyStreet/DB/ResultSet/Alert.pm | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/perllib/FixMyStreet/DB/ResultSet/Alert.pm b/perllib/FixMyStreet/DB/ResultSet/Alert.pm index c61053fff..ddf80bc52 100644 --- a/perllib/FixMyStreet/DB/ResultSet/Alert.pm +++ b/perllib/FixMyStreet/DB/ResultSet/Alert.pm @@ -7,11 +7,6 @@ use warnings; sub timeline_created { my ( $rs, $restriction ) = @_; - my $prefetch = - $rs->result_source->storage->sql_maker->quote_char ? - [ qw/alert_type user/ ] : - [ qw/alert_type/ ]; - return $rs->search( { whensubscribed => { '>=', \"current_timestamp-'7 days'::interval" }, @@ -19,7 +14,7 @@ sub timeline_created { %{ $restriction }, }, { - prefetch => $prefetch, + prefetch => [ qw/alert_type user/ ], } ); } |