Class: Workarea::IndexCategorization

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::CallbacksWorker, Sidekiq::Worker
Defined in:
app/workers/workarea/index_categorization.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.perform(category) ⇒ Object



12
13
14
# File 'app/workers/workarea/index_categorization.rb', line 12

def self.perform(category)
  Search::Storefront::CategoryQuery.new(category).update
end

Instance Method Details

#perform(id) ⇒ Object



16
17
18
19
# File 'app/workers/workarea/index_categorization.rb', line 16

def perform(id)
  category = Catalog::Category.find(id)
  self.class.perform(category)
end