updated zone domain status

This commit is contained in:
oleghasjanov 2024-10-21 14:05:52 +03:00
parent fc795482f6
commit 08ce8dbbb3
3 changed files with 1 additions and 12 deletions

View file

@ -36,15 +36,6 @@ module Whois
if collection == Dispute
collection.find_by(domain_name: name)
else
puts "\n\n\n\n\n"
puts "collection: #{collection}"
puts "name: #{name}"
puts collection == DNS::Zone
puts "\n\n\n\n\n"
collection == DNS::Zone ? collection.find_by(origin: name) : collection.find_by(name: name)
end
end

View file

@ -7,7 +7,5 @@ class RegenerateSubzoneWhoisesJob < ApplicationJob
UpdateWhoisRecordJob.perform_later zone.origin, 'zone'
end
UpdateWhoisRecordJob.perform_later 'olegwashere.ee', 'zone'
end
end

View file

@ -34,7 +34,7 @@ module Zone::WhoisQueryable
def domain_vars
{
disclaimer: Setting.registry_whois_disclaimer, name: origin,
registered: created_at.try(:to_s, :iso8601), status: ['ok (paid and in zone)'],
registered: created_at.try(:to_s, :iso8601), status: ['blocked'],
changed: updated_at.try(:to_s, :iso8601), email: Setting.registry_email,
admin_contacts: [contact_vars], tech_contacts: [contact_vars],
nameservers: nameserver_vars, dnssec_keys: [],