diff options
Diffstat (limited to 'app/models/cycle_analytics/queries.rb')
-rw-r--r-- | app/models/cycle_analytics/queries.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/cycle_analytics/queries.rb b/app/models/cycle_analytics/queries.rb index 2d134a0d9a4..32c49ec52ba 100644 --- a/app/models/cycle_analytics/queries.rb +++ b/app/models/cycle_analytics/queries.rb @@ -54,7 +54,7 @@ class CycleAnalytics tip = merge_request.commits.first return unless tip - pipeline = Ci::Pipeline.find_by_sha(tip.sha) + pipeline = Ci::Pipeline.success.find_by_sha(tip.sha) pipeline.started_at if pipeline end end @@ -65,7 +65,7 @@ class CycleAnalytics tip = merge_request.commits.first return unless tip - pipeline = Ci::Pipeline.find_by_sha(tip.sha) + pipeline = Ci::Pipeline.success.find_by_sha(tip.sha) pipeline.finished_at if pipeline end end |