FIX: Ambiguous column in `downsize_uploads` (#14972)

This commit is contained in:
Jarek Radosz 2021-11-16 16:23:32 +01:00 committed by GitHub
parent 8420cf047e
commit cfabdb72bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ def process_uploads
SQL
if ENV["WORKER_ID"] && ENV["WORKER_COUNT"]
scope = scope.where("id % ? = ?", ENV["WORKER_COUNT"], ENV["WORKER_ID"])
scope = scope.where("uploads.id % ? = ?", ENV["WORKER_COUNT"], ENV["WORKER_ID"])
end
skipped = 0