mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 03:06:14 +02:00
updated emails
This commit is contained in:
parent
59fb12b840
commit
c29a35fffb
3 changed files with 40 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue