mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +02:00
parent
ab77a1ae31
commit
e1e41a962e
2 changed files with 1 additions and 13 deletions
|
@ -32,12 +32,11 @@ class DomainCron
|
|||
end
|
||||
|
||||
def self.start_expire_period
|
||||
Rails.logger.info('Expiring domains')
|
||||
|
||||
::PaperTrail.whodunnit = "cron - #{__method__}"
|
||||
domains = Domain.expired
|
||||
marked = 0
|
||||
real = 0
|
||||
|
||||
domains.each do |domain|
|
||||
next unless domain.expirable?
|
||||
real += 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue