mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 19:20:37 +02:00
REPP: Add Domain Create endpoint
This commit is contained in:
parent
c58b4fb2e9
commit
e2ff5d4506
3 changed files with 34 additions and 5 deletions
|
@ -31,7 +31,7 @@ class Epp::Domain < Domain
|
|||
# validate registrant here as well
|
||||
([Contact.find_by(code: registrant.code)] + active_admins + active_techs).each do |x|
|
||||
unless x.valid?
|
||||
add_epp_error('2304', nil, nil, I18n.t(:contact_is_not_valid, value: x.code))
|
||||
add_epp_error('2304', nil, nil, I18n.t(:contact_is_not_valid, value: x.try(:code)))
|
||||
ok = false
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue