updated emails

This commit is contained in:
olegphenomenon 2021-11-05 12:09:04 +02:00
parent 59fb12b840
commit c29a35fffb
3 changed files with 40 additions and 7 deletions

View file

@ -24,7 +24,8 @@ class VerifyEmailsJob < ApplicationJob
contact = Contact.find(contact_id)
contact_ids = Contact.where(email: contact.email).where('created_at > ?', time).pluck(:id)
r = ValidationEvent.where(validation_eventable_id: contact_ids)
r = ValidationEvent.where(validation_eventable_id: contact_ids).order(created_at: :desc)
# return false if r[0].success == false
r.present?
end