mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 17:01:44 +02:00
parent
3b120f0362
commit
0c6c583184
1 changed files with 1 additions and 3 deletions
|
@ -35,11 +35,9 @@ class DomainCron
|
|||
Rails.logger.info('Expiring domains')
|
||||
|
||||
::PaperTrail.whodunnit = "cron - #{__method__}"
|
||||
|
||||
domains = Domain.expired
|
||||
domains = Domain.where('valid_to <= ?', Time.zone.now)
|
||||
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