diff options
author | James Lopez <james@jameslopez.es> | 2017-05-05 10:51:25 +0200 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2017-05-05 10:51:25 +0200 |
commit | 9ec39568c5284f5a3a17a342d12f87befb6cfb4c (patch) | |
tree | 91bd2398f5ea0b982ec80bac4fa233f30baf635d /app/services/projects | |
parent | adcff298f8f3041faa29b75ee3711fb4ce1cbb69 (diff) | |
download | gitlab-ce-9ec39568c5284f5a3a17a342d12f87befb6cfb4c.tar.gz |
use select_values
Diffstat (limited to 'app/services/projects')
-rw-r--r-- | app/services/projects/propagate_service.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/projects/propagate_service.rb b/app/services/projects/propagate_service.rb index 716a6209537..f952b5108bb 100644 --- a/app/services/projects/propagate_service.rb +++ b/app/services/projects/propagate_service.rb @@ -41,7 +41,7 @@ module Projects end def project_ids_batch - Project.connection.execute( + Project.connection.select_values( <<-SQL SELECT id FROM projects @@ -53,7 +53,7 @@ module Projects ) LIMIT #{BATCH_SIZE} SQL - ).to_a.flatten + ) end def service_hash |