mirror of
https://github.com/internetee/registry.git
synced 2025-07-30 14:36:22 +02:00
Fixed domain add/remove contacts endpoints
This commit is contained in:
parent
078e67fce5
commit
936ff18de2
3 changed files with 16 additions and 11 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
|
||||
|
|
|
@ -94,10 +94,6 @@ module Repp
|
|||
param :verified, [true, false, 'true', 'false'], required: false,
|
||||
desc: 'Registrant change is already verified'
|
||||
end
|
||||
param :contacts, Array, required: false, desc: 'Array of linked contacts' do
|
||||
param :code, String, required: true, desc: 'Contact code'
|
||||
param :type, String, required: true, desc: 'Role of contact (admin/tech)'
|
||||
end
|
||||
param :transfer_code, String, required: false, desc: 'New authorization code'
|
||||
end
|
||||
def update
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue