mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Use a better products list for catalog
This commit is contained in:
@@ -15,8 +15,8 @@ module DfcProvider
|
||||
|
||||
def index
|
||||
products = @enterprise.
|
||||
inventory_variants.
|
||||
includes(:product, :inventory_items)
|
||||
supplied_products.
|
||||
includes(variants: :product)
|
||||
|
||||
serialized_data = ::DfcProvider::ProductSerializer.
|
||||
new(products, base_url).
|
||||
|
||||
Reference in New Issue
Block a user