Bulk NS change: track untouched domains

This commit is contained in:
Karl Erik Õunapuu 2020-12-30 12:46:51 +02:00
parent 8bb0fd80d1
commit af0a0611ce
No known key found for this signature in database
GPG key ID: C9DD647298A34764
4 changed files with 20 additions and 15 deletions

View file

@ -6,9 +6,9 @@ module Repp
def update
affected, errored = current_user.registrar
.replace_nameservers(hostname,
hostname_params[:data][:attributes],
domains: domains_from_params)
.replace_nameservers(hostname,
hostname_params[:data][:attributes],
domains: domains_from_params)
render_success(data: data_format_for_success(affected, errored))
rescue ActiveRecord::RecordInvalid => e