diff options
Diffstat (limited to 'app/mailers/emails/remote_mirrors.rb')
-rw-r--r-- | app/mailers/emails/remote_mirrors.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/mailers/emails/remote_mirrors.rb b/app/mailers/emails/remote_mirrors.rb index f3938a052b0..9cde53918b9 100644 --- a/app/mailers/emails/remote_mirrors.rb +++ b/app/mailers/emails/remote_mirrors.rb @@ -5,8 +5,9 @@ module Emails def remote_mirror_update_failed_email(remote_mirror_id, recipient_id) @remote_mirror = RemoteMirror.find_by_id(remote_mirror_id) @project = @remote_mirror.project + user = User.find(recipient_id) - mail(to: recipient(recipient_id, @project.group), subject: subject('Remote mirror update failed')) + mail(to: user.notification_email_for(@project.group), subject: subject('Remote mirror update failed')) end end end |