Envoie un email à l'expert en cas de nouveau commentaire de l'usager dans la messagerie
This commit is contained in:
parent
6253188a77
commit
ac29cfbfdb
7 changed files with 71 additions and 5 deletions
|
@ -314,11 +314,7 @@ module Users
|
|||
|
||||
if @commentaire.errors.empty?
|
||||
@commentaire.dossier.update!(last_commentaire_updated_at: Time.zone.now)
|
||||
dossier.followers_instructeurs
|
||||
.with_instant_email_message_notifications
|
||||
.each do |instructeur|
|
||||
DossierMailer.notify_new_commentaire_to_instructeur(dossier, instructeur.email).deliver_later
|
||||
end
|
||||
|
||||
flash.notice = t('.message_send')
|
||||
redirect_to messagerie_dossier_path(dossier)
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue