diff options
Diffstat (limited to 'bin/send-comments')
-rwxr-xr-x | bin/send-comments | 4 |
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 .'%' }, |