fixed backup job...

pull/10035/head
Markus Kahl 3 years ago
parent caea42ec5a
commit 404e2daa22
  1. 2
      app/workers/backup_job.rb

@ -155,7 +155,7 @@ class BackupJob < ::ApplicationJob
zipfile.add "attachment/file/#{attachment.id}/#{attachment[:file]}", path
paths_to_clean << get_cache_folder_path(attachment) if clean_up && a.file.cached?
paths_to_clean << get_cache_folder_path(attachment) if clean_up && attachment.file.cached?
end
zipfile.get_output_stream("openproject.sql") { |f| f.write File.read(db_dump_file_name) }

Loading…
Cancel
Save