mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 14:44:47 +02:00
updated emails
This commit is contained in:
parent
59fb12b840
commit
c29a35fffb
3 changed files with 40 additions and 7 deletions
|
@ -57,10 +57,15 @@ def prepare_contacts(options)
|
|||
time = Time.zone.now - ValidationEvent::VALIDATION_PERIOD
|
||||
validation_events_ids = ValidationEvent.where('created_at > ?', time).pluck(:validation_eventable_id)
|
||||
|
||||
# Contact.where.not(id: validation_events_ids) + Contact.where(id: failed_contacts)
|
||||
Contact.where.not(id: validation_events_ids)
|
||||
end
|
||||
end
|
||||
|
||||
def failed_contacts
|
||||
ValidationEvent.failed.pluck(:id)
|
||||
end
|
||||
|
||||
def contacts_by_domain(domain_name)
|
||||
domain = ::Domain.find_by(name: domain_name)
|
||||
return unless domain
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue