diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2018-09-11 21:35:43 +0200 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2018-09-11 21:35:43 +0200 |
commit | e5bb70422435d31e737dec2042beb637d43fc9a2 (patch) | |
tree | f8d4f69cf3edfa1dd8252088e2994535dffc9a65 | |
parent | 55add3e2620a84d77ca7be11e77b6335197bcea6 (diff) | |
download | gitlab-ce-kamil-ci-daemon-api.tar.gz |
Simplify runningkamil-ci-daemon-api
-rw-r--r-- | app/models/ci/runner.rb | 3 |
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 |