mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-01 02:03:22 +00:00
Use batches in order to fetch orders
This commit is contained in:
@@ -8,7 +8,7 @@ class BulkInvoiceService
|
||||
def start_pdf_job(order_ids)
|
||||
pdf = CombinePDF.new
|
||||
|
||||
orders_from(order_ids).each do |order|
|
||||
orders_from(order_ids).find_each do |order|
|
||||
invoice = renderer.render_to_string(order)
|
||||
|
||||
pdf << CombinePDF.parse(invoice)
|
||||
|
||||
Reference in New Issue
Block a user