mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 19:48:28 +02:00
Fix contact code check
This commit is contained in:
parent
c7b4045018
commit
0617ef9d7d
2 changed files with 3 additions and 2 deletions
|
@ -42,8 +42,9 @@ class Epp::Contact < Contact
|
|||
)
|
||||
end
|
||||
|
||||
def check_availability(codes)
|
||||
def check_availability(codes, reg:)
|
||||
codes = [codes] if codes.is_a?(String)
|
||||
codes = codes.map { |c| c.include?(':') ? c : "#{reg}:#{c}" }
|
||||
|
||||
res = []
|
||||
codes.each do |x|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue