Skip to content

Commit

Permalink
updated domain response
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegPhenomenon committed Oct 24, 2023
1 parent fdabc99 commit 356f9cb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/serializers/repp/domain.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ def to_json(obj = domain)
json = {
name: obj.name, registrant: registrant,
created_at: obj.created_at, updated_at: obj.updated_at,
expire_time: obj.expire_time,
outzone_at: obj.outzone_at, delete_date: obj.delete_date,
force_delete_date: obj.force_delete_date, contacts: contacts,
nameservers: nameservers, dnssec_keys: dnssec_keys,
statuses: statuses, registrar: registrar,
expire_time: obj.expire_time, outzone_at: obj.outzone_at,
delete_date: obj.delete_date, force_delete_date: obj.force_delete_date,
contacts: contacts, nameservers: nameservers, dnssec_keys: dnssec_keys,
statuses: statuses, registrar: registrar, status_notes: obj.status_notes,
dispute: Dispute.active.exists?(domain_name: obj.name)
}
json[:transfer_code] = obj.auth_info if @sponsored

json
end
# rubocop:enable Metrics/MethodLength
Expand Down

0 comments on commit 356f9cb

Please sign in to comment.