mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 12:24:04 +00:00
Make sure an int exit code is always returned
This commit is contained in:
parent
4a537672d8
commit
cb6661210f
1 changed files with 1 additions and 7 deletions
|
|
@ -14,14 +14,8 @@ trait TenantAwareCommand
|
|||
protected function execute(InputInterface $input, OutputInterface $output)
|
||||
{
|
||||
$tenants = $this->getTenants();
|
||||
|
||||
if (count($tenants) === 1) {
|
||||
return $tenants[0]->run(function () {
|
||||
return $this->laravel->call([$this, 'handle']);
|
||||
});
|
||||
}
|
||||
|
||||
$exitCode = 0;
|
||||
|
||||
foreach ($tenants as $tenant) {
|
||||
$result = (int) $tenant->run(function () {
|
||||
return $this->laravel->call([$this, 'handle']);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue