Stroy#110392672 - Contact domains update should be async

This commit is contained in:
Vladimir Krylov 2016-01-07 15:29:25 +02:00
parent 438b22f19d
commit 678852091b
3 changed files with 4 additions and 4 deletions

View file

@ -498,7 +498,7 @@ class Contact < ActiveRecord::Base
end
def update_related_whois_records
related_domain_descriptions.each{ |x, y| WhoisRecord.find_by(name: x).try(:save) }
RegenerateWhoisRecordJob.enqueue related_domain_descriptions.keys, :name
end
end