Skip to content
Snippets Groups Projects
Unverified Commit 882e54c7 authored by Jeong Arm's avatar Jeong Arm Committed by GitHub
Browse files

Fix Ambiguous SQL error on tootctl media refresh (#19206)

parent 7b38cb88
No related branches found
No related tags found
No related merge requests found
......@@ -234,7 +234,7 @@ module Mastodon
end
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
processed, aggregate = parallelize_with_progress(scope) do |media_attachment|
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment