summaryrefslogtreecommitdiff
path: root/lib/gitlab/email
diff options
context:
space:
mode:
authorHeinrich Lee Yu <hleeyu@gmail.com>2018-12-31 11:23:50 +0800
committerHeinrich Lee Yu <hleeyu@gmail.com>2019-01-07 11:16:58 +0800
commit63e9969ca3ac57839b78d9cc44bcf32bc9a45248 (patch)
treecda51e40b5ea915d26425edfce815ca6fae991e9 /lib/gitlab/email
parentccbc45559b7bedd1d76c1840bbdfba3cce542af7 (diff)
downloadgitlab-ce-63e9969ca3ac57839b78d9cc44bcf32bc9a45248.tar.gz
Refactor upload service to return uploader
Also changes old calls to the service
Diffstat (limited to 'lib/gitlab/email')
-rw-r--r--lib/gitlab/email/attachment_uploader.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/email/attachment_uploader.rb b/lib/gitlab/email/attachment_uploader.rb
index a826519b2dd..bffea697f9a 100644
--- a/lib/gitlab/email/attachment_uploader.rb
+++ b/lib/gitlab/email/attachment_uploader.rb
@@ -23,7 +23,7 @@ module Gitlab
content_type: attachment.content_type
}
- link = UploadService.new(project, file).execute
+ link = UploadService.new(project, file).execute.to_h
attachments << link if link
ensure
tmp.close!