diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-11-01 03:06:26 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-11-01 03:06:26 +0000 |
commit | 56d96ad7fab4d4b95f5529d8080b3cc2873794a0 (patch) | |
tree | 7fe93fc8ff4d82d815000781ffb9c98d7259211a /app/workers/new_release_worker.rb | |
parent | 8078bd185fd9fce86cb5a8d9a6b6209e0c23ae44 (diff) | |
download | gitlab-ce-56d96ad7fab4d4b95f5529d8080b3cc2873794a0.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/workers/new_release_worker.rb')
-rw-r--r-- | app/workers/new_release_worker.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/new_release_worker.rb b/app/workers/new_release_worker.rb index 28d2517238e..a3a882f9343 100644 --- a/app/workers/new_release_worker.rb +++ b/app/workers/new_release_worker.rb @@ -7,7 +7,7 @@ class NewReleaseWorker feature_category :release_orchestration def perform(release_id) - release = Release.with_project_and_namespace.find_by_id(release_id) + release = Release.preloaded.find_by_id(release_id) return unless release NotificationService.new.send_new_release_notifications(release) |