Merge pull request #8447 from colinux/fix-email-event-wo-subject
fix(email-event): apparently mail subject could be null
This commit is contained in:
commit
ae3fb19c0e
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ class EmailEvent < ApplicationRecord
|
|||
to.each do |recipient|
|
||||
EmailEvent.create!(
|
||||
to: recipient,
|
||||
subject: message.subject,
|
||||
subject: message.subject || "",
|
||||
processed_at: message.date,
|
||||
method: ActionMailer::Base.delivery_methods.key(message.delivery_method.class),
|
||||
status:
|
||||
|
|
Loading…
Reference in a new issue