Skip to content

Commit

Permalink
CatalogPricing::class => CatalogPricing
Browse files Browse the repository at this point in the history
  • Loading branch information
angrybrad committed Nov 15, 2024
1 parent 4e2f1b4 commit 2509ec2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/elements/CommerceProduct.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public function init(): void

// While imports are happening don't process any catalog pricing jobs
Event::on(Queue::class, Queue::EVENT_BEFORE_PUSH, function(PushEvent $event) {
if ($event->job instanceof CatalogPricing::class && !$this->_runCatalogPricingJob) {
if ($event->job instanceof CatalogPricing && !$this->_runCatalogPricingJob) {
$event->handled = true;
}
});
Expand Down

0 comments on commit 2509ec2

Please sign in to comment.