mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Merge pull request #10493 from jibees/10492-background-reports-background_reports-breaks-pdf-and-xlsx-file-download
Reports, `background_reports` feature toggle activated: Force writing file in binary mode
This commit is contained in:
@@ -19,7 +19,7 @@ class ReportJob < ActiveJob::Base
|
||||
private
|
||||
|
||||
def write(result)
|
||||
File.write(filename, result)
|
||||
File.write(filename, result, mode: "wb")
|
||||
end
|
||||
|
||||
def read_result
|
||||
|
||||
Reference in New Issue
Block a user