Commit e5d022c8 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Fix constant name

parent 1be5af31
...@@ -260,7 +260,7 @@ module Ci ...@@ -260,7 +260,7 @@ module Ci
def update_duration def update_duration
calculated_status = %w[success failed running canceled] calculated_status = %w[success failed running canceled]
calculated_builds = builds.latest.where(status: calculated_status) calculated_builds = builds.latest.where(status: calculated_status)
calculator = PipelineDuration.from_builds(calculated_builds) calculator = Gitlab::Ci::PipelineDuration.from_builds(calculated_builds)
self.duration = calculator.duration self.duration = calculator.duration
self.pending_duration = self.pending_duration =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment