diff options
author | Zeger-Jan van de Weg <git@zjvandeweg.nl> | 2017-11-02 19:38:25 +0100 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-12-03 12:04:49 +0100 |
commit | c7d945758accc6f80ee63c7c3b25782cf7f6f3b0 (patch) | |
tree | 4d3f5dd8325eee87ab72a3c0269f452a0edacd82 /app/models/project_statistics.rb | |
parent | cc750539ec852e9f42ea25b31cc14a45962fc975 (diff) | |
download | gitlab-ce-c7d945758accc6f80ee63c7c3b25782cf7f6f3b0.tar.gz |
Fix most test failures
Diffstat (limited to 'app/models/project_statistics.rb')
-rw-r--r-- | app/models/project_statistics.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/project_statistics.rb b/app/models/project_statistics.rb index a9c22d9cf18..17b9d2cf7b4 100644 --- a/app/models/project_statistics.rb +++ b/app/models/project_statistics.rb @@ -37,8 +37,7 @@ class ProjectStatistics < ActiveRecord::Base def update_build_artifacts_size self.build_artifacts_size = project.builds.sum(:artifacts_size) + - Ci::JobArtifact.artifacts_size_for(self) + - Ci::JobArtifactMetadata.artifacts_size_for(self) + Ci::JobArtifact.artifacts_size_for(self) end def update_storage_size |