REPP: Combine create/delete actions for DNSSEC keys

This commit is contained in:
Karl Erik Õunapuu 2021-01-28 11:07:12 +02:00
parent 8c01385be0
commit 0d2cb6b7f2
No known key found for this signature in database
GPG key ID: C9DD647298A34764
2 changed files with 11 additions and 14 deletions

View file

@ -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