116209751-modification_for_update

This commit is contained in:
Stas 2016-04-12 22:32:32 +03:00
parent 55af3c8326
commit 0696700e5d

View file

@ -187,12 +187,6 @@ module Depp
} }
end end
if domain_params[:verified].present?
custom_params[:_anonymus] << {
registrant_verified: { value: 'yes' }
}
end
if domain_params[:reserved_pw].present? if domain_params[:reserved_pw].present?
custom_params[:_anonymus] << { reserved: { pw: { value: domain_params[:reserved_pw] } } } custom_params[:_anonymus] << { reserved: { pw: { value: domain_params[:reserved_pw] } } }
end end
@ -223,6 +217,11 @@ module Depp
chg = [{ registrant: { value: domain_params[:registrant] } }] chg = [{ registrant: { value: domain_params[:registrant] } }]
end end
if domain_params[:verified].present?
chg.push({ registrant_verified: 'yes'}) if chg.present?
chg = [{ registrant_verified: 'yes'}] if chg.nil?
end
add_arr = nil if add_arr.none? add_arr = nil if add_arr.none?
rem_arr = nil if rem_arr.none? rem_arr = nil if rem_arr.none?