mirror of
https://github.com/internetee/registry.git
synced 2025-07-27 21:16:12 +02:00
Merge pull request #2475 from internetee/fix-domain-contacts-repp
Fix domain contacts repp
This commit is contained in:
commit
4328ebbfcc
2 changed files with 16 additions and 7 deletions
|
@ -41,9 +41,7 @@ module Repp
|
|||
def cta(action = 'add')
|
||||
params[:contacts].each { |c| c[:action] = action }
|
||||
action = Actions::DomainUpdate.new(@domain, contact_create_params, false)
|
||||
# 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