Return domain name in domain transfers API

#693
This commit is contained in:
Artur Beljajev 2018-02-22 18:27:00 +02:00
parent 923d2d5446
commit 0eca515c3d
2 changed files with 5 additions and 2 deletions

View file

@ -26,7 +26,7 @@ module Repp
if domain
if domain.transfer_code == transfer_code
domain.transfer(new_registrar)
successful_domain_transfers << { type: 'domain_transfer' }
successful_domain_transfers << { type: 'domain_transfer', attributes: { domain_name: domain.name } }
else
errors << { title: "#{domain_name} transfer code is wrong" }
end