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:
Paul Chavard 2023-01-17 16:57:27 +01:00 committed by GitHub
commit ae3fb19c0e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: