mirror of
https://github.com/internetee/registry.git
synced 2025-07-29 14:06:21 +02:00
added logs
This commit is contained in:
parent
6b1a62cf2c
commit
b3ac165bd3
4 changed files with 13 additions and 2 deletions
|
@ -11,6 +11,8 @@ module Domains
|
|||
|
||||
# Allow deletion
|
||||
statuses.delete(DomainStatus::CLIENT_DELETE_PROHIBITED)
|
||||
|
||||
puts "Try to save domain: #{domain.name} with statuses: #{statuses}"
|
||||
domain.save(validate: false)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -9,6 +9,7 @@ module Domains
|
|||
compose(NotifyRegistrar, inputs.to_h)
|
||||
compose(NotifyByEmail, inputs.to_h)
|
||||
compose(NotifyMultiyearsExpirationDomain, inputs.to_h)
|
||||
puts "SetForceDelete has been executed"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -48,6 +48,7 @@ module Domain::ForceDelete
|
|||
end
|
||||
|
||||
def schedule_force_delete(type: :fast_track, notify_by_email: false, reason: nil, email: nil)
|
||||
puts "Schedule force delete for domain: #{name} with type: #{type}"
|
||||
Domains::ForceDelete::SetForceDelete.run(domain: self, type: type, reason: reason,
|
||||
notify_by_email: notify_by_email, email: email)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue