diff options
author | Jonathan Prykop <jonathan@freeside.biz> | 2016-11-29 04:21:46 -0600 |
---|---|---|
committer | Jonathan Prykop <jonathan@freeside.biz> | 2016-11-29 05:08:38 -0600 |
commit | 3d8958a36f22a88738b637b4d5583e989e91bc8e (patch) | |
tree | 94b7044e130f403e731323ce5535fe7b8b51b4da /FS/FS/Cron | |
parent | 9605850e1b105d527961a0766ec05840b3d6962e (diff) |
71513: Card tokenization [upgrade implemented]
Diffstat (limited to 'FS/FS/Cron')
-rw-r--r-- | FS/FS/Cron/cleanup.pm | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/FS/FS/Cron/cleanup.pm b/FS/FS/Cron/cleanup.pm index 6ec4013..9d0c067 100644 --- a/FS/FS/Cron/cleanup.pm +++ b/FS/FS/Cron/cleanup.pm @@ -8,12 +8,26 @@ use FS::Record qw( qsearch ); # start janitor jobs sub cleanup { -# fix locations that are missing coordinates + my %opt = @_; + + # fix locations that are missing coordinates my $job = FS::queue->new({ 'job' => 'FS::cust_location::process_set_coord', 'status' => 'new' }); $job->insert('_JOB'); + + # check card number tokenization + $job = FS::queue->new({ + 'job' => 'FS::cust_main::Billing_Realtime::token_check', + 'status' => 'new' + }); + $job->insert( + %opt, + 'queue' => 1, + 'daily' => 1, + ); + } sub cleanup_before_backup { |