diff options
author | Shinya Maeda <shinya@gitlab.com> | 2019-03-01 08:10:07 +0300 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2019-03-05 07:36:26 +0300 |
commit | 18889696bda82d6ec50f97ca06edc97ff49d8fb4 (patch) | |
tree | a8b244da5c8ec8ecc3b532146957ed65e55cfa35 /app/workers/pipeline_metrics_worker.rb | |
parent | 7b4130d0f7390629d683e4365279ab5554bbcfc4 (diff) |
Rename ambiguous association names in Ci::Pipeline
fix it ok
Fix
head pipeline
Diffstat (limited to 'app/workers/pipeline_metrics_worker.rb')
-rw-r--r-- | app/workers/pipeline_metrics_worker.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/pipeline_metrics_worker.rb b/app/workers/pipeline_metrics_worker.rb index c2fbfd2b3a5..0ddad43b8d5 100644 --- a/app/workers/pipeline_metrics_worker.rb +++ b/app/workers/pipeline_metrics_worker.rb @@ -30,6 +30,6 @@ class PipelineMetricsWorker # rubocop: enable CodeReuse/ActiveRecord def merge_requests(pipeline) - pipeline.merge_requests.map(&:id) + pipeline.merge_requests_as_head_pipeline.map(&:id) end end |