REPP: Add Domain Create endpoint

This commit is contained in:
Karl Erik Õunapuu 2021-01-11 15:57:23 +02:00
parent c58b4fb2e9
commit e2ff5d4506
No known key found for this signature in database
GPG key ID: C9DD647298A34764
3 changed files with 34 additions and 5 deletions

View file

@ -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