Skip to content

Commit

Permalink
updated zone domain status
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegPhenomenon committed Oct 21, 2024
1 parent fc79548 commit 08ce8db
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
9 changes: 0 additions & 9 deletions app/interactions/whois/update.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,6 @@ def find_record(collection, name)
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
Expand Down
2 changes: 0 additions & 2 deletions app/jobs/regenerate_subzone_whoises_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,5 @@ def perform

UpdateWhoisRecordJob.perform_later zone.origin, 'zone'
end

UpdateWhoisRecordJob.perform_later 'olegwashere.ee', 'zone'
end
end
2 changes: 1 addition & 1 deletion app/models/concerns/zone/whois_queryable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def generate_json
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: [],
Expand Down

0 comments on commit 08ce8db

Please sign in to comment.