Add check if domain got *UpdateProhibited

This commit is contained in:
Alex Sherman 2021-01-29 16:13:15 +05:00
parent 8a399569fe
commit 3c1b989723
3 changed files with 19 additions and 2 deletions

View file

@ -6,7 +6,7 @@ class TechDomainContact < DomainContact
tech_contacts = where(contact: current_contact)
tech_contacts.each do |tech_contact|
if tech_contact.domain.discarded?
if tech_contact.domain.bulk_update_prohibited?
skipped_domains << tech_contact.domain.name
next
end
@ -18,7 +18,6 @@ class TechDomainContact < DomainContact
skipped_domains << tech_contact.domain.name
end
end
[affected_domains.sort, skipped_domains.sort]
end
end