summaryrefslogtreecommitdiff
path: root/app/models/deployment.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-06-27 18:09:39 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-06-27 18:09:39 +0000
commit3e1f93c033ed7744696f7763716b51ab5acda17a (patch)
tree9208f71b8b7461a34560ac2b7f5d01f26b5cd80c /app/models/deployment.rb
parentab421e159d39cf91a95f4a911821308d258e77d9 (diff)
downloadgitlab-ce-3e1f93c033ed7744696f7763716b51ab5acda17a.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/deployment.rb')
-rw-r--r--app/models/deployment.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/deployment.rb b/app/models/deployment.rb
index 64f284af43c..c25ba6f9268 100644
--- a/app/models/deployment.rb
+++ b/app/models/deployment.rb
@@ -185,7 +185,7 @@ class Deployment < ApplicationRecord
def self.last_deployment_group_for_environment(env)
return self.none unless env.last_deployment_pipeline&.latest_successful_builds&.present?
- BatchLoader.for(env).batch do |environments, loader|
+ BatchLoader.for(env).batch(default_value: self.none) do |environments, loader|
latest_successful_build_ids = []
environments_hash = {}