1 package FS::Cron::expire_banned_pay;
3 use vars qw( @ISA @EXPORT_OK );
8 @EXPORT_OK = qw( expire_banned_pay );
10 sub expire_banned_pay {
11 my $sql = "DELETE FROM banned_pay WHERE end_date IS NOT NULL".
13 my $sth = dbh->prepare($sql) or die dbh->errstr;
14 $sth->execute(time) or die $sth->errstr;
16 dbh->commit or die dbh->errstr if $FS::UID::AutoCommit