108078584-import_conditions_change

This commit is contained in:
Stas 2015-11-17 12:46:01 +02:00
parent 46e502080f
commit 72a6394f57

View file

@ -393,7 +393,7 @@ namespace :import do
:domain_contact_maps,
nsset: { hosts: :host_ipaddr_maps }
).find_each(batch_size: 10000).with_index do |x, index|
next if existing_domain_ids.include?(x.id)
next if existing_domain_ids.include?(x.id) || Registrar.find_by(legacy_id: x.object.try(:clid)).try(:name) == 'eedirect'
count += 1
begin