amelioration(dolist_api): forward le message_id afin de faciliter les investigations

This commit is contained in:
Martin 2023-02-03 15:40:16 +01:00 committed by mfo
parent 709a9e82a2
commit 2de9026c13
5 changed files with 27 additions and 3 deletions

View file

@ -10,6 +10,7 @@
# to :string not null
# created_at :datetime not null
# updated_at :datetime not null
# message_id :string
#
class EmailEvent < ApplicationRecord
enum status: {
@ -30,6 +31,7 @@ class EmailEvent < ApplicationRecord
subject: message.subject || "",
processed_at: message.date,
method: ActionMailer::Base.delivery_methods.key(message.delivery_method.class),
message_id: message.message_id,
status:
)
rescue StandardError => error