[Fix #839] Send notification email in async to avoid sending same email to different users
This commit is contained in:
parent
c2ab960ff2
commit
3ba5de88b6
1 changed files with 1 additions and 1 deletions
|
@ -377,7 +377,7 @@ class Dossier < ActiveRecord::Base
|
|||
|
||||
def send_notification_email
|
||||
if state_changed? && EN_INSTRUCTION.include?(state)
|
||||
NotificationMailer.send_notification(self, procedure.received_mail_template).deliver_now!
|
||||
NotificationMailer.send_notification(self, procedure.received_mail_template).deliver_later
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue