diff options
author | ThibG <thib@sitedethib.com> | 2020-02-24 21:18:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-24 21:18:26 +0100 |
commit | d91946ae134f84889f26a08987cb75abeab62742 (patch) | |
tree | d05bbe1d0fc430512c345f8ca56a92602099bbb8 /app | |
parent | 3704402dcce6775c32350d09cd3dc7d2ba95105a (diff) |
Fix backups failing when files are missing from media attachments (#13146)
Fixes #13123
Diffstat (limited to 'app')
-rw-r--r-- | app/services/backup_service.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/services/backup_service.rb b/app/services/backup_service.rb index d1090dff1..896699324 100644 --- a/app/services/backup_service.rb +++ b/app/services/backup_service.rb @@ -66,6 +66,8 @@ class BackupService < BaseService def dump_media_attachments!(tar) MediaAttachment.attached.where(account: account).reorder(nil).find_in_batches do |media_attachments| media_attachments.each do |m| + next unless m.file&.path + download_to_tar(tar, m.file, m.file.path) end |