added logs

This commit is contained in:
oleghasjanov 2024-09-27 10:20:16 +03:00
parent 6b1a62cf2c
commit b3ac165bd3
4 changed files with 13 additions and 2 deletions

View file

@ -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

View file

@ -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

View file

@ -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