Use existing method

Co-authored-by: Maikel <maikel@email.org.au>
This commit is contained in:
David Cook
2025-02-26 10:00:21 +11:00
committed by Maikel Linke
parent 801beadb67
commit 317cbd4b32

View File

@@ -53,9 +53,7 @@ class OpenOrderCycleJob < ApplicationJob
# Import selected variants from each catalog
catalogs.each do |catalog_url, catalog_links|
catalog_json = DfcRequest.new(dfc_user).call(catalog_url)
graph = DfcIo.import(catalog_json)
catalog = DfcCatalog.new(graph)
catalog = DfcCatalog.load(dfc_user, catalog_url)
catalog.apply_wholesale_values!
catalog_links.each do |link|