mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 14:44:47 +02:00
Fix CC issues
This commit is contained in:
parent
a13725faa7
commit
3d444c3a04
5 changed files with 27 additions and 14 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue