mirror of
https://github.com/internetee/registry.git
synced 2025-05-20 03:09:36 +02:00
Contact refactor
This commit is contained in:
parent
55decf3dd4
commit
4d0845a8d2
1 changed files with 0 additions and 8 deletions
|
@ -120,12 +120,4 @@ module Epp::ContactsHelper
|
||||||
Contact::IDENT_TYPES.any? { |type| return type if result.include?(type) }
|
Contact::IDENT_TYPES.any? { |type| return type if result.include?(type) }
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
|
|
||||||
def handle_contact_errors # handle_errors conflicted with domain logic
|
|
||||||
handle_epp_errors({
|
|
||||||
'2302' => ['Contact id already exists'],
|
|
||||||
'2303' => [:not_found, :epp_obj_does_not_exist],
|
|
||||||
'2005' => ['Phone nr is invalid', 'Email is invalid']
|
|
||||||
},@contact)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue