Skip to content

Commit

Permalink
Update QueueTenancyBootstrapper.php (archtechx#836)
Browse files Browse the repository at this point in the history
  • Loading branch information
bonroyage authored Apr 1, 2022
1 parent 349125c commit f065ea6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Bootstrappers/QueueTenancyBootstrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ protected static function setUpJobListener($dispatcher, $runningTests)
static::initializeTenancyForQueue($event->job->payload()['tenant_id'] ?? null);
});

if (Str::startsWith(app()->version(), '8')) {
// JobRetryRequested only exists since Laravel 8
if (version_compare(app()->version(), '8.64', '>=')) {
// JobRetryRequested only exists since Laravel 8.64
$dispatcher->listen(JobRetryRequested::class, function ($event) use (&$previousTenant) {
$previousTenant = tenant();

Expand Down

0 comments on commit f065ea6

Please sign in to comment.