mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 14:44:47 +02:00
Fix CC issues
This commit is contained in:
parent
7c35083a8b
commit
dd8d4c1085
6 changed files with 12 additions and 12 deletions
|
@ -37,8 +37,8 @@ module Repp
|
|||
end
|
||||
|
||||
def cta(action = 'add')
|
||||
dnssec_params[:dnssec][:dns_keys].each { |n| n[:action] = action }
|
||||
action = Actions::DomainUpdate.new(@domain, dnssec_params[:dnssec], current_user)
|
||||
params[:dns_keys].each { |n| n[:action] = action }
|
||||
action = Actions::DomainUpdate.new(@domain, dnssec_params, current_user)
|
||||
|
||||
# rubocop:disable Style/AndOr
|
||||
(handle_errors(@domain) and return) unless action.call
|
||||
|
@ -50,7 +50,7 @@ module Repp
|
|||
private
|
||||
|
||||
def dnssec_params
|
||||
params.permit!
|
||||
params.permit(:domain_id, dns_keys: [%i[action flags protocol alg public_key]])
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue