From e70eb0221e98001c45866f0dacf78cf8ce226618 Mon Sep 17 00:00:00 2001 From: evazion Date: Wed, 18 Mar 2020 15:04:59 -0500 Subject: [PATCH] emails: fix deliver_later mails not being sent. By default, mails sent by deliver_later are added to the `mailers` job queue. These mails weren't being sent because workers were only configured to process the `default` queue. --- config/application.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/application.rb b/config/application.rb index 075a741f2..dc9398d4e 100644 --- a/config/application.rb +++ b/config/application.rb @@ -36,6 +36,8 @@ module Danbooru raise "Danbooru.config.secret_key_base not configured" if Danbooru.config.secret_key_base.blank? config.secret_key_base = Danbooru.config.secret_key_base + config.action_mailer.deliver_later_queue_name = "default" + if Danbooru.config.mail_delivery_method.to_sym == :smtp config.action_mailer.delivery_method = :smtp config.action_mailer.smtp_settings = Danbooru.config.mail_settings