mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
FIX: Ambiguous column in downsize_uploads
(#14972)
This commit is contained in:
parent
8420cf047e
commit
cfabdb72bc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user