diff options
author | Struan Donald <struan@exo.org.uk> | 2012-04-25 17:27:42 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-04-25 17:27:42 +0100 |
commit | 17ddaadfd74fab9702a4382e6c021daf9b9b48db (patch) | |
tree | 76668f41919b0d4d41fd6efce29c0b45f1ee6383 | |
parent | 689f178a53d1bdf451a4c46ebdefaec64ebbd7cf (diff) |
update whensent when a comment is succesfully sent
-rwxr-xr-x | bin/send-comments | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/send-comments b/bin/send-comments index 70289e9b1..dd60f8451 100755 --- a/bin/send-comments +++ b/bin/send-comments @@ -68,8 +68,10 @@ while ( my $council = $councils->next ) { my $id = $o->post_service_request_update( $comment ); if ( $id ) { - $comment->external_id( $id ); - $comment->update(); + $comment->update( { + external_id => $id, + whensent => \'ms_current_timestamp()', + } ); } else { $comment->update( { send_fail_count => $comment->send_fail_count + 1, |