mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Cut OC edit #for_order_cycle queries in half
This commit is contained in:
@@ -37,7 +37,7 @@ class Api::Admin::ForOrderCycle::EnterpriseSerializer < ActiveModel::Serializer
|
||||
end
|
||||
|
||||
def products
|
||||
@products ||= products_scope.includes(:supplier, master: [:images])
|
||||
@products ||= products_scope.includes(:variants, :supplier, master: [:images])
|
||||
end
|
||||
|
||||
def order_cycle
|
||||
|
||||
Reference in New Issue
Block a user