FIX: add slight delay when enqueuing activation email
This commit is contained in:
parent
c7f76aa554
commit
2e2b5e28aa
|
@ -650,7 +650,7 @@ class UsersController < ApplicationController
|
|||
|
||||
def enqueue_activation_email
|
||||
@email_token ||= @user.email_tokens.create(email: @user.email)
|
||||
Jobs.enqueue(:critical_user_email, type: :signup, user_id: @user.id, email_token: @email_token.token)
|
||||
Jobs.enqueue_in(1.second, :critical_user_email, type: :signup, user_id: @user.id, email_token: @email_token.token)
|
||||
end
|
||||
|
||||
def search_users
|
||||
|
|
Loading…
Reference in New Issue