mirror of
https://github.com/internetee/registry.git
synced 2025-06-11 07:04:47 +02:00
REPP: Combine create/delete actions for DNSSEC keys
This commit is contained in:
parent
8c01385be0
commit
0d2cb6b7f2
2 changed files with 11 additions and 14 deletions
|
@ -41,7 +41,9 @@ module Repp
|
|||
contact_create_params[:contacts].each { |c| c[:action] = action }
|
||||
action = Actions::DomainUpdate.new(@domain, contact_create_params, current_user)
|
||||
|
||||
# rubocop:disable Style/AndOr
|
||||
handle_errors(@domain) and return unless action.call
|
||||
# rubocop:enable Style/AndOr
|
||||
|
||||
render_success(data: { domain: { name: @domain.name } })
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue