Fix CC issues

This commit is contained in:
Alex Sherman 2020-06-08 16:16:06 +05:00
parent a13725faa7
commit 3d444c3a04
5 changed files with 27 additions and 14 deletions

View file

@ -3,9 +3,12 @@ namespace :verify_email do
task all_domains: :environment do
verifications_by_domain = EmailAddressVerification.not_verified_recently.group_by(&:domain)
verifications_by_domain.each do |_domain, verifications|
verifications_by_domain.each do |domain, verifications|
next if domain == 'not_found'
ver = verifications[0] # Only first email to not to clog the SMTP servers
VerifyEmailsJob.enqueue(ver.id)
# VerifyEmailsJob.run(ver.id)
end
end
end