mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 08:22:05 +02:00
updated: also validated contacts which was failed without any time limits
This commit is contained in:
parent
8b9fbafeb4
commit
5ea5dd7197
4 changed files with 44 additions and 21 deletions
|
@ -25,7 +25,6 @@ class VerifyEmailsJob < ApplicationJob
|
|||
contact_ids = Contact.where(email: contact.email).where('created_at > ?', time).pluck(:id)
|
||||
|
||||
r = ValidationEvent.where(validation_eventable_id: contact_ids).order(created_at: :desc)
|
||||
# return false if r[0].success == false
|
||||
|
||||
r.present?
|
||||
end
|
||||
|
|
|
@ -12,7 +12,7 @@ class ValidationEvent < ApplicationRecord
|
|||
|
||||
INVALID_EVENTS_COUNT_BY_LEVEL = {
|
||||
regex: 1,
|
||||
mx: 5,
|
||||
mx: 2,
|
||||
smtp: 1,
|
||||
}.freeze
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue