mirror of
https://github.com/internetee/registry.git
synced 2025-07-02 17:23:34 +02:00
Fix cron job method #2784
This commit is contained in:
parent
9b2fb6497a
commit
fccb760688
1 changed files with 1 additions and 2 deletions
|
@ -199,7 +199,6 @@ class Domain < ActiveRecord::Base
|
|||
count += 1
|
||||
domain.clean_pendings!
|
||||
end
|
||||
|
||||
STDOUT << "#{Time.zone.now.utc} - Successfully cancelled #{count} domain pendings\n" unless Rails.env.test?
|
||||
count
|
||||
end
|
||||
|
@ -213,7 +212,7 @@ class Domain < ActiveRecord::Base
|
|||
domain.set_expired!
|
||||
end
|
||||
|
||||
STDOUT << "#{Time.zone.now.utc} - Successfully expired #{d.count} domains\n" unless Rails.env.test?
|
||||
STDOUT << "#{Time.zone.now.utc} - Successfully expired #{domain.count} domains\n" unless Rails.env.test?
|
||||
end
|
||||
|
||||
def start_redemption_grace_period
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue