summaryrefslogtreecommitdiff
path: root/app/models/ci/runner.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/ci/runner.rb')
-rw-r--r--app/models/ci/runner.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/ci/runner.rb b/app/models/ci/runner.rb
index 37498da26a5..fcf65d4638d 100644
--- a/app/models/ci/runner.rb
+++ b/app/models/ci/runner.rb
@@ -270,8 +270,7 @@ module Ci
running: Ci::Build.running
.where(runner: self)
.group(:project_id)
- .pluck(:project_id, 'count(*)')
- .to_h
+ .count
}
end