mirror of
https://github.com/discourse/discourse.git
synced 2025-06-07 11:14:44 +08:00
FIX: Ambiguous column in downsize_uploads
(#14972)
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user