FEATURE: Create SQL-only backup if there are no uploads (#20221)

It doesn't make sense to double-compress the backup when there are no uploads even when the admin requested a backup with uploads.
This commit is contained in:
Gerhard Schlager 2023-02-08 21:40:15 +01:00 committed by GitHub
parent 871607a420
commit 58875b818b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ module BackupRestore
@user_id = user_id
@client_id = opts[:client_id]
@publish_to_message_bus = opts[:publish_to_message_bus] || false
@with_uploads = opts[:with_uploads].nil? ? include_uploads? : opts[:with_uploads]
@with_uploads = opts[:with_uploads] == false ? false : include_uploads?
@filename_override = opts[:filename]
@ticket = opts[:ticket]