Skip to content

Commit

Permalink
silverstripe-terraformers/embargo-expiry 2.0 function replaced and us…
Browse files Browse the repository at this point in the history
…ed getActionIsProcessing instead
  • Loading branch information
pack254 committed Jul 25, 2024
1 parent 72b7489 commit ab48fb1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Extensions/WorkflowApplicable.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
use Symbiote\AdvancedWorkflow\DataObjects\WorkflowInstance;
use Symbiote\AdvancedWorkflow\Services\WorkflowService;
use Terraformers\EmbargoExpiry\Extension\EmbargoExpiryExtension;
use Terraformers\EmbargoExpiry\Job\State\ActionProcessingState;

/**
* DataObjects that have the WorkflowApplicable extension can have a
Expand Down Expand Up @@ -414,7 +415,7 @@ public function isEmbargoExpiryJobRunning(): bool
return false;
}

return $this->owner->getIsPublishJobRunning() || $this->owner->getIsUnPublishJobRunning();
return ActionProcessingState::singleton()->getActionIsProcessing();
}

/**
Expand Down

0 comments on commit ab48fb1

Please sign in to comment.