Skip to content

Commit

Permalink
DGFIP::ExportController : eager loads relations
Browse files Browse the repository at this point in the history
  • Loading branch information
skelz0r committed Dec 13, 2024
1 parent ad101cd commit c5e146b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/controllers/dgfip/export_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ def spreadsheet
end

def authorization_requests
AuthorizationRequest.where(form_uid: dgfip_form_uids)
AuthorizationRequest
.includes(:organization, :authorizations)
.where(form_uid: dgfip_form_uids)
end

def dgfip_form_uids
Expand Down

0 comments on commit c5e146b

Please sign in to comment.