Class: Spree::SearchProvider::RemoveJob
- Inherits:
-
BaseJob
- Object
- ApplicationJob
- BaseJob
- Spree::SearchProvider::RemoveJob
show all
- Defined in:
- app/jobs/spree/search_provider/remove_job.rb
Constant Summary
Constants inherited
from BaseJob
BaseJob::TRANSIENT_ERRORS
Instance Method Summary
collapse
Instance Method Details
17
18
19
20
21
22
23
|
# File 'app/jobs/spree/search_provider/remove_job.rb', line 17
def perform(prefixed_id, store_id)
store = Spree::Store.find_by(id: store_id)
return unless store
provider = Spree.search_provider.constantize.new(store)
provider.remove_by_id(prefixed_id)
end
|