Fix CC issues

This commit is contained in:
Karl Erik Õunapuu 2020-11-06 16:21:14 +02:00
parent 451e1f79af
commit a182dfb3ba
No known key found for this signature in database
GPG key ID: C9DD647298A34764
5 changed files with 7 additions and 6 deletions

View file

@ -32,7 +32,8 @@ module Repp
domains = params[:data][:domains] || []
begin
affected_domains = current_user.registrar.replace_nameservers(hostname, new_attributes, domains)
affected_domains = current_user.registrar.replace_nameservers(hostname, new_attributes,
domains: domains)
rescue ActiveRecord::RecordInvalid => e
error!({ errors: e.record.errors.full_messages.map { |error| { title: error } } }, 400)
end