diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-12 00:09:17 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-12 00:09:17 +0000 |
commit | df8c8224edcaa7458c1ac79444768dab71580783 (patch) | |
tree | 2b26b7b1e32b09aee4ca848c656536d0473748de /app | |
parent | fdc26e021b1e3eea4161bf6891f3a151fb7414b0 (diff) | |
download | gitlab-ce-df8c8224edcaa7458c1ac79444768dab71580783.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app')
-rw-r--r-- | app/models/ci/job_artifact.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/ci/job_artifact.rb b/app/models/ci/job_artifact.rb index e1ed9f95601..c831ef12501 100644 --- a/app/models/ci/job_artifact.rb +++ b/app/models/ci/job_artifact.rb @@ -322,12 +322,12 @@ module Ci end end - def archived_trace_exists? + def stored? file&.file&.exists? end def self.archived_trace_exists_for?(job_id) - where(job_id: job_id).trace.take&.archived_trace_exists? + where(job_id: job_id).trace.take&.stored? end def self.max_artifact_size(type:, project:) |