summaryrefslogtreecommitdiff
path: root/app/mailers/emails/remote_mirrors.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/mailers/emails/remote_mirrors.rb')
-rw-r--r--app/mailers/emails/remote_mirrors.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/mailers/emails/remote_mirrors.rb b/app/mailers/emails/remote_mirrors.rb
index 2d8137843ec..f3938a052b0 100644
--- a/app/mailers/emails/remote_mirrors.rb
+++ b/app/mailers/emails/remote_mirrors.rb
@@ -3,7 +3,7 @@
module Emails
module RemoteMirrors
def remote_mirror_update_failed_email(remote_mirror_id, recipient_id)
- @remote_mirror = RemoteMirrorFinder.new(id: remote_mirror_id).execute
+ @remote_mirror = RemoteMirror.find_by_id(remote_mirror_id)
@project = @remote_mirror.project
mail(to: recipient(recipient_id, @project.group), subject: subject('Remote mirror update failed'))