Skip to content

Commit

Permalink
Merge pull request #94 from tobytwigger/dont-break-when-disabled
Browse files Browse the repository at this point in the history
Pay attention to config in job
  • Loading branch information
tobytwigger committed Jul 5, 2023
2 parents be61bf8 + 001718e commit 8f6d4a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Concerns/Trackable.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function withoutTracking(bool $shouldTrack = false): void

public function shouldTrack(): bool
{
return $this->shouldTrack;
return $this->shouldTrack && config('laravel-job-status.enabled', true);
}

public static function search(array $tags = []): Builder
Expand Down

0 comments on commit 8f6d4a0

Please sign in to comment.