mirror of
https://github.com/System-End/theseus.git
synced 2026-04-19 19:55:10 +00:00
preload more stuff when generating labels
This commit is contained in:
parent
bcd5bfd37c
commit
03990b4018
1 changed files with 1 additions and 1 deletions
|
|
@ -331,7 +331,7 @@ class Letter::Batch < Batch
|
|||
return unless letters.any?
|
||||
|
||||
# Preload associations to avoid N+1 queries
|
||||
preloaded_letters = letters.includes(:address, :usps_mailer_id)
|
||||
preloaded_letters = letters.includes(:address, :usps_mailer_id, :usps_indicium, :return_address)
|
||||
|
||||
# Build options for label generation
|
||||
label_options = {}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue