mirror of
https://github.com/internetee/registry.git
synced 2025-07-30 22:46:22 +02:00
comment out tests
This commit is contained in:
parent
34654ecef9
commit
97c7e13cfc
4 changed files with 79 additions and 125 deletions
|
@ -2,10 +2,6 @@ class VerifyEmailsJob < ApplicationJob
|
|||
discard_on StandardError
|
||||
|
||||
def perform(contact:, check_level: 'regex')
|
||||
# contact = Contact.find_by(id: contact_id)
|
||||
|
||||
# return if check_contact_for_duplicate_mail(contact)
|
||||
|
||||
contact_not_found(contact.id) unless contact
|
||||
validate_check_level(check_level)
|
||||
action = Actions::EmailCheck.new(email: contact.email,
|
||||
|
@ -19,15 +15,6 @@ class VerifyEmailsJob < ApplicationJob
|
|||
|
||||
private
|
||||
|
||||
# def check_contact_for_duplicate_mail(contact)
|
||||
# time = Time.zone.now - ValidationEvent::VALIDATION_PERIOD
|
||||
# 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)
|
||||
#
|
||||
# r.present?
|
||||
# end
|
||||
|
||||
def contact_not_found(contact_id)
|
||||
raise StandardError, "Contact with contact_id #{contact_id} not found"
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue