aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-04-30 18:57:58 +0100
committerStruan Donald <struan@exo.org.uk>2012-04-30 18:57:58 +0100
commitb0c313a027aa931fc47cc905bb009fa90dfb1b0c (patch)
tree4f2b448ac6c796cdaf1f68b8d38e54327c902ef0 /bin
parentece5fb35819f90b608766ce5677a5134951b7545 (diff)
specify which table we want for fields
Diffstat (limited to 'bin')
-rwxr-xr-xbin/send-comments4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/send-comments b/bin/send-comments
index 1bd68e916..0fb3a75b9 100755
--- a/bin/send-comments
+++ b/bin/send-comments
@@ -44,8 +44,8 @@ while ( my $council = $councils->next ) {
my $comments = FixMyStreet::App->model('DB::Comment')->search( {
'me.whensent' => undef,
'me.external_id' => undef,
- 'state' => 'confirmed',
- 'confirmed' => { '!=' => undef },
+ 'me.state' => 'confirmed',
+ 'me.confirmed' => { '!=' => undef },
'problem.whensent' => { '!=' => undef },
'problem.external_id' => { '!=' => undef },
'problem.council' => { -like => '%' . $council->area_id .'%' },