Test email is now synchronous and ignores sidekiq queue.
This commit is contained in:
parent
2ee3859c08
commit
852d110f35
|
@ -11,7 +11,7 @@ class Admin::EmailController < Admin::AdminController
|
|||
|
||||
def test
|
||||
params.require(:email_address)
|
||||
Jobs.enqueue(:test_email, to_address: params[:email_address])
|
||||
Jobs::TestEmail.new.execute(to_address: params[:email_address])
|
||||
render nothing: true
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue