Maintenance: Not having an active Email::Notification is a valid use case.
This commit is contained in:
parent
08a98efca4
commit
ffa2b61087
1 changed files with 6 additions and 0 deletions
|
@ -133,6 +133,12 @@ returns
|
|||
|
||||
# get active Email::Outbound Channel and send
|
||||
channel = Channel.find_by(area: 'Email::Notification', active: true)
|
||||
|
||||
if channel.blank?
|
||||
Rails.logger.info "Can't find an active 'Email::Notification' channel. Canceling notification sending."
|
||||
return
|
||||
end
|
||||
|
||||
channel.deliver(
|
||||
{
|
||||
# in_reply_to: in_reply_to,
|
||||
|
|
Loading…
Reference in a new issue