mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 10:16:01 +02:00
Merge branch '115693873-whodunnit_empty' into staging
This commit is contained in:
commit
31e0f44856
3 changed files with 3 additions and 3 deletions
|
@ -8,13 +8,13 @@ class UpdateWhoisRecordJob < Que::Job
|
||||||
end
|
end
|
||||||
|
|
||||||
Array(names).each do |name|
|
Array(names).each do |name|
|
||||||
|
::PaperTrail.whodunnit = "job - #{self.class.name} - #{type}"
|
||||||
record = klass.find_by(name: name)
|
record = klass.find_by(name: name)
|
||||||
if record
|
if record
|
||||||
send "update_#{type}", record
|
send "update_#{type}", record
|
||||||
else
|
else
|
||||||
send "delete_#{type}", name
|
send "delete_#{type}", name
|
||||||
end
|
end
|
||||||
::PaperTrail.whodunnit = "job - #{self.class.name} - #{type}"
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -361,7 +361,7 @@ class Domain < ActiveRecord::Base
|
||||||
|
|
||||||
status_notes[DomainStatus::PENDING_UPDATE] = ''
|
status_notes[DomainStatus::PENDING_UPDATE] = ''
|
||||||
status_notes[DomainStatus::PENDING_DELETE] = ''
|
status_notes[DomainStatus::PENDING_DELETE] = ''
|
||||||
::PaperTrail.whodunnit = "#{self.class.name} - #{__method__}"
|
::PaperTrail.whodunnit = "Domain - #{__method__}"
|
||||||
|
|
||||||
hash = {
|
hash = {
|
||||||
registrant_verification_token: nil,
|
registrant_verification_token: nil,
|
||||||
|
|
|
@ -13,6 +13,7 @@ class DomainCron
|
||||||
STDOUT << msg unless Rails.env.test?
|
STDOUT << msg unless Rails.env.test?
|
||||||
next
|
next
|
||||||
end
|
end
|
||||||
|
::PaperTrail.whodunnit = "cron - #{__method__}"
|
||||||
count += 1
|
count += 1
|
||||||
if domain.pending_update?
|
if domain.pending_update?
|
||||||
DomainMailer.pending_update_expired_notification_for_new_registrant(domain.id).deliver
|
DomainMailer.pending_update_expired_notification_for_new_registrant(domain.id).deliver
|
||||||
|
@ -25,7 +26,6 @@ class DomainCron
|
||||||
STDOUT << "#{Time.zone.now.utc} DomainCron.clean_expired_pendings: ##{domain.id} (#{domain.name})\n"
|
STDOUT << "#{Time.zone.now.utc} DomainCron.clean_expired_pendings: ##{domain.id} (#{domain.name})\n"
|
||||||
end
|
end
|
||||||
UpdateWhoisRecordJob.enqueue domain.name, 'domain'
|
UpdateWhoisRecordJob.enqueue domain.name, 'domain'
|
||||||
::PaperTrail.whodunnit = "cron - #{__method__}"
|
|
||||||
end
|
end
|
||||||
STDOUT << "#{Time.zone.now.utc} - Successfully cancelled #{count} domain pendings\n" unless Rails.env.test?
|
STDOUT << "#{Time.zone.now.utc} - Successfully cancelled #{count} domain pendings\n" unless Rails.env.test?
|
||||||
count
|
count
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue