mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 19:14:04 +00:00
Update QueueTenancyBootstrapper.php (#836)
This commit is contained in:
parent
349125c02e
commit
f065ea60b0
1 changed files with 2 additions and 2 deletions
|
|
@ -63,8 +63,8 @@ class QueueTenancyBootstrapper implements TenancyBootstrapper
|
||||||
static::initializeTenancyForQueue($event->job->payload()['tenant_id'] ?? null);
|
static::initializeTenancyForQueue($event->job->payload()['tenant_id'] ?? null);
|
||||||
});
|
});
|
||||||
|
|
||||||
if (Str::startsWith(app()->version(), '8')) {
|
if (version_compare(app()->version(), '8.64', '>=')) {
|
||||||
// JobRetryRequested only exists since Laravel 8
|
// JobRetryRequested only exists since Laravel 8.64
|
||||||
$dispatcher->listen(JobRetryRequested::class, function ($event) use (&$previousTenant) {
|
$dispatcher->listen(JobRetryRequested::class, function ($event) use (&$previousTenant) {
|
||||||
$previousTenant = tenant();
|
$previousTenant = tenant();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue