Skip to content

Commit

Permalink
Bugfix wiring
Browse files Browse the repository at this point in the history
  • Loading branch information
adrolli committed Aug 29, 2023
1 parent 6941a4d commit ef51d19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
File renamed without changes.
8 changes: 4 additions & 4 deletions src/Traits/QueueProgress.php → src/Traits/JobProgress.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Adrolli\FilamentJobManager\Models\Job;

trait QueueProgress
trait JobProgress
{
/**
* Update progress.
Expand All @@ -13,7 +13,7 @@ public function setProgress(int $progress): void
{
$progress = min(100, max(0, $progress));

if (! $monitor = $this->getQueueMonitor()) {
if (! $monitor = $this->getJobMonitor()) {
return;
}

Expand All @@ -25,9 +25,9 @@ public function setProgress(int $progress): void
}

/**
* Return Queue Monitor Model.
* Return Job Monitor Model.
*/
protected function getQueueMonitor(): ?Job
protected function getJobMonitor(): ?Job
{
if (! property_exists($this, 'job')) {
return null;
Expand Down

0 comments on commit ef51d19

Please sign in to comment.