Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/concerns/integration.rb')
-rw-r--r--app/models/concerns/integration.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/concerns/integration.rb b/app/models/concerns/integration.rb
index 9d446841a9f..5e53f13be95 100644
--- a/app/models/concerns/integration.rb
+++ b/app/models/concerns/integration.rb
@@ -6,12 +6,12 @@ module Integration
class_methods do
def with_custom_integration_for(integration, page = nil, per = nil)
custom_integration_project_ids = Service
+ .select(:project_id)
.where(type: integration.type)
.where(inherit_from_id: nil)
- .distinct # Required until https://gitlab.com/gitlab-org/gitlab/-/issues/207385
+ .where.not(project_id: nil)
.page(page)
.per(per)
- .pluck(:project_id)
Project.where(id: custom_integration_project_ids)
end