comment out force delete check callback

This commit is contained in:
olegphenomenon 2022-04-25 16:07:54 +03:00
parent 43bd6f2907
commit bc0a9d4f99
4 changed files with 89 additions and 92 deletions

View file

@ -46,14 +46,12 @@ end
def prepare_contacts(options)
if options[:domain_name].present?
Rails.logger.info 'NEED TO TODO'
contacts_by_domain(options[:domain_name])
else
time = Time.zone.now - ValidationEvent::VALIDATION_PERIOD
validation_events_ids = ValidationEvent.where('created_at > ?', time).distinct.pluck(:validation_eventable_id)
contacts_emails = Contact.where.not(id: validation_events_ids).pluck(:email)
# Contact.where(id: contacts_ids + failed_contacts).pluck(:email).uniq
(contacts_emails + failed_email_contacts).uniq
end
end