Skip to content

Commit

Permalink
Typo: we sync catalogs, not categories
Browse files Browse the repository at this point in the history
  • Loading branch information
mkllnk committed Dec 18, 2024
1 parent b6eca58 commit a7dfa36
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/jobs/stock_sync_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit a7dfa36

Please sign in to comment.