mirror of
https://github.com/internetee/registry.git
synced 2025-06-11 23:24:48 +02:00
Fix CC issues
This commit is contained in:
parent
7c35083a8b
commit
dd8d4c1085
6 changed files with 12 additions and 12 deletions
|
@ -13,8 +13,8 @@ module Repp
|
|||
param :ipv6, Array, required: false, desc: 'Array of IPv6 values'
|
||||
end
|
||||
def create
|
||||
nameserver_params[:nameservers].each { |n| n[:action] = 'add' }
|
||||
action = Actions::DomainUpdate.new(@domain, params, current_user)
|
||||
params[:nameservers].each { |n| n[:action] = 'add' }
|
||||
action = Actions::DomainUpdate.new(@domain, nameserver_params, current_user)
|
||||
|
||||
unless action.call
|
||||
handle_errors(@domain)
|
||||
|
@ -45,7 +45,7 @@ module Repp
|
|||
end
|
||||
|
||||
def nameserver_params
|
||||
params.permit!
|
||||
params.permit(:domain_id, nameservers: [[:hostname, :action, ipv4: [], ipv6: []]])
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue