This commit is contained in:
parent
30572aa41c
commit
f98886b3a0
|
@ -26,7 +26,7 @@ class FeedbackMessageHistory < ApplicationRecord
|
|||
private
|
||||
|
||||
def send_meessage_email
|
||||
unless UserMailer.feedback_email(user&.mail, title, content).deliver_now
|
||||
unless UserMailer.feedback_email(feedback&.user&.mail, title, content).deliver_now
|
||||
errors[:title] << '邮件发送失败!'
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue