0
0
Fork 0

Remove default_scope from MediaAttachment class (#28043)

This commit is contained in:
Matt Jankowski 2023-11-30 08:30:35 -05:00 committed by GitHub
parent 02a98210e8
commit bb0efe16e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 15 additions and 16 deletions

View file

@ -72,7 +72,7 @@ class BackupService < BaseService
end
def dump_media_attachments!(zipfile)
MediaAttachment.attached.where(account: account).reorder(nil).find_in_batches do |media_attachments|
MediaAttachment.attached.where(account: account).find_in_batches do |media_attachments|
media_attachments.each do |m|
path = m.file&.path
next unless path