Skip to content

Commit

Permalink
fix(mailers): increase email confirmation / password reset mailer pri…
Browse files Browse the repository at this point in the history
…ority
  • Loading branch information
adi-herwana-nus authored and cysjonathan committed Dec 10, 2024
1 parent 3df7a32 commit 0d23ff2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
module Extensions::DeviseAsyncEmail::Devise::Models::Authenticatable
module PrependMethods
def send_devise_notification(notification, *args)
devise_mailer.send(notification, self, *args).deliver_later
devise_mailer.send(notification, self, *args).deliver_later(queue: :highest) # default :mailers
end
end
end
2 changes: 1 addition & 1 deletion spec/models/user/email_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

with_active_job_queue_adapter(:test) do
it 'sends email with ActiveJob queue' do
expect { subject }.to have_enqueued_job.on_queue('mailers')
expect { subject }.to have_enqueued_job.on_queue('highest')
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion spec/models/user_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@
with_active_job_queue_adapter(:test) do
it 'sends email with ActiveJob queue' do
expect { subject.send_reset_password_instructions }.to \
have_enqueued_job.on_queue('mailers')
have_enqueued_job.on_queue('highest')
end
end
end
Expand Down

0 comments on commit 0d23ff2

Please sign in to comment.