diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 953353916e9..95fa640d613 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -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