Skip to content

Commit

Permalink
Merge pull request #18 from telkins/patch-1
Browse files Browse the repository at this point in the history
No need to determine `$tenantId` twice...
  • Loading branch information
freekmurze authored May 21, 2020
2 parents c038858 + 954b6c5 commit 26a5fec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Actions/MakeQueueTenantAwareAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ protected function listenForJobsBeingProcessed(): self
return;
}
/** @var \Spatie\Multitenancy\Models\Tenant $tenant */
if (! $tenant = $this->getTenantModel()::find($event->job->payload()['tenantId'])) {
if (! $tenant = $this->getTenantModel()::find($tenantId)) {
return;
}

Expand Down

0 comments on commit 26a5fec

Please sign in to comment.