diff options
Diffstat (limited to 'app/models/ci/pipeline.rb')
-rw-r--r-- | app/models/ci/pipeline.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ci/pipeline.rb b/app/models/ci/pipeline.rb index a57ae0085ca..19335ccea57 100644 --- a/app/models/ci/pipeline.rb +++ b/app/models/ci/pipeline.rb @@ -78,7 +78,7 @@ module Ci CommitStatus.where(pipeline: pluck(:id)).stages end - def self.duration + def self.total_duration where.not(duration: nil).sum(:duration) end |