mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-24 09:57:27 +00:00
Fix Ambiguous SQL error on tootctl media refresh (#19206)
This commit is contained in:
parent
7b38cb88ca
commit
882e54c786
|
@ -234,7 +234,7 @@ module Mastodon
|
||||||
end
|
end
|
||||||
|
|
||||||
if options[:days].present?
|
if options[:days].present?
|
||||||
scope = scope.where('id > ?', Mastodon::Snowflake.id_at(options[:days].days.ago, with_random: false))
|
scope = scope.where('media_attachments.id > ?', Mastodon::Snowflake.id_at(options[:days].days.ago, with_random: false))
|
||||||
end
|
end
|
||||||
|
|
||||||
processed, aggregate = parallelize_with_progress(scope) do |media_attachment|
|
processed, aggregate = parallelize_with_progress(scope) do |media_attachment|
|
||||||
|
|
Loading…
Reference in a new issue