diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-01 16:38:24 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-01 16:38:24 +0300 |
commit | 0396082c12f518f48e136968dbf0b4e5f774641c (patch) | |
tree | 9ee22b3f2d65483c316d30397b7e065d4dec5fec /lib/api | |
parent | cb7e80d1211dae947e40290a834cbe29ee36364e (diff) |
Add latest changes from gitlab-org/gitlab@15-2-stable-ee
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/helpers.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb index e462ca19ba6..fdb0fbf820d 100644 --- a/lib/api/helpers.rb +++ b/lib/api/helpers.rb @@ -574,12 +574,12 @@ module API end end - def log_artifact_size(file) + def log_artifact_file_size(file) Gitlab::ApplicationContext.push(artifact: file.model) end def present_artifacts_file!(file, **args) - log_artifact_size(file) if file + log_artifact_file_size(file) if file present_carrierwave_file!(file, **args) end |