diff options
author | Zeger-Jan van de Weg <zegerjan@gitlab.com> | 2016-03-29 16:57:24 +0200 |
---|---|---|
committer | Zeger-Jan van de Weg <zegerjan@gitlab.com> | 2016-03-31 20:20:18 +0200 |
commit | 1e7116b34d229fcefab5147d6f90b1c24513afe8 (patch) | |
tree | 4b0a50f7c7f6f3872ab5aa6e2ca43bb6d8be5c39 /app/workers | |
parent | 95c7aa62defdbc7984c71faeb0b901a7fe59b223 (diff) | |
download | gitlab-ce-1e7116b34d229fcefab5147d6f90b1c24513afe8.tar.gz |
Exclude projects pending deletion from all results
Diffstat (limited to 'app/workers')
-rw-r--r-- | app/workers/project_destroy_worker.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/project_destroy_worker.rb b/app/workers/project_destroy_worker.rb index d06e4480292..b51c6a266c9 100644 --- a/app/workers/project_destroy_worker.rb +++ b/app/workers/project_destroy_worker.rb @@ -5,7 +5,7 @@ class ProjectDestroyWorker def perform(project_id, user_id, params) begin - project = Project.find(project_id) + project = Project.unscoped.find(project_id) rescue ActiveRecord::RecordNotFound return end |