From a7dfa368838b335c99d8c1754ded07d52f716428 Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Wed, 18 Dec 2024 13:01:23 +1100 Subject: [PATCH] Typo: we sync catalogs, not categories --- app/jobs/stock_sync_job.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/jobs/stock_sync_job.rb b/app/jobs/stock_sync_job.rb index 05b7888bad2..7d962ea4a88 100644 --- a/app/jobs/stock_sync_job.rb +++ b/app/jobs/stock_sync_job.rb @@ -9,11 +9,11 @@ class StockSyncJob < ApplicationJob # enqueue a new job. That should save some time loading the order with # all the stock data to make this decision. def self.sync_linked_catalogs_later(order) - sync_categories_by_perform_method(order, :perform_later) + sync_catalogs_by_perform_method(order, :perform_later) end def self.sync_linked_catalogs_now(order) - sync_categories_by_perform_method(order, :perform_now) + sync_catalogs_by_perform_method(order, :perform_now) end def self.catalog_ids(order) @@ -59,7 +59,7 @@ def linked_variants(enterprises, product_ids) .where(semantic_links: { semantic_id: product_ids }) end - def self.sync_categories_by_perform_method(order, perform_method) + def self.sync_catalogs_by_perform_method(order, perform_method) distributor = order.distributor return unless distributor