Skip to content

Commit 9e4d7cf

Browse files
authored
Merge pull request #4960 from coalest/fix-distribution-export-perf-regression
Fix distribution export performance regression
2 parents 02e3569 + c9d589c commit 9e4d7cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/distributions_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def index
6969
respond_to do |format|
7070
format.html
7171
format.csv do
72-
send_data Exports::ExportDistributionsCSVService.new(distributions: @distributions, organization: current_organization, filters: scope_filters).generate_csv, filename: "Distributions-#{Time.zone.today}.csv"
72+
send_data Exports::ExportDistributionsCSVService.new(distributions: @distributions.includes(line_items: :item), organization: current_organization, filters: scope_filters).generate_csv, filename: "Distributions-#{Time.zone.today}.csv"
7373
end
7474
end
7575
end

0 commit comments

Comments
 (0)