mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 10:16:01 +02:00
parent
e304088041
commit
e653d8b56e
4 changed files with 102 additions and 14 deletions
|
@ -35,7 +35,7 @@ class DomainCron
|
|||
STDOUT << "#{Time.zone.now.utc} - Expiring domains\n" unless Rails.env.test?
|
||||
|
||||
::PaperTrail.whodunnit = "cron - #{__method__}"
|
||||
domains = Domain.where('valid_to <= ?', Time.zone.now)
|
||||
domains = Domain.expired
|
||||
marked = 0
|
||||
real = 0
|
||||
domains.each do |domain|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue