Merge pull request #2187 from internetee/2185-mail-validation-event-threshold-not-applied

2185 mail validation event threshold not applied
This commit is contained in:
Timo Võhmar 2021-10-22 15:40:02 +03:00 committed by GitHub
commit 38ceccfadc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 44 additions and 9 deletions

View file

@ -50,7 +50,7 @@ def prepare_contacts(options)
if options[:domain_name].present?
contacts_by_domain(options[:domain_name])
else
Contact.recently_not_validated
Contact.all
end
end
@ -58,7 +58,7 @@ def contacts_by_domain(domain_name)
domain = ::Domain.find_by(name: domain_name)
return unless domain
domain.contacts.recently_not_validated
domain.contacts
end
def opts_hash