mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: Ambiguous column in downsize_uploads
(#14972)
This commit is contained in:
parent
8420cf047e
commit
cfabdb72bc
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ def process_uploads
|
||||||
SQL
|
SQL
|
||||||
|
|
||||||
if ENV["WORKER_ID"] && ENV["WORKER_COUNT"]
|
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
|
end
|
||||||
|
|
||||||
skipped = 0
|
skipped = 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue