Skip to content

Commit

Permalink
FIX: Ambiguous column in downsize_uploads (discourse#14972)
Browse files Browse the repository at this point in the history
  • Loading branch information
CvX authored Nov 16, 2021
1 parent 8420cf0 commit cfabdb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/downsize_uploads.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cfabdb7

Please sign in to comment.