Skip to content

Commit

Permalink
revert 'finish update console only set company for modules..' this co…
Browse files Browse the repository at this point in the history
…mmit.
  • Loading branch information
cuneytsenturk committed Mar 2, 2022
1 parent 48fb23b commit c539e01
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions app/Console/Commands/FinishUpdate.php
Expand Up @@ -47,19 +47,17 @@ public function handle()
throw new \Exception(trans('modules.errors.finish', ['module' => $alias]));
}

if ($alias != 'core') {
$company = company($company_id);
$company = company($company_id);

if (empty($company)) {
return;
}
if (empty($company)) {
return;
}

$company->makeCurrent();
$company->makeCurrent();

// Set locale for modules
if (empty($company->locale)) {
app()->setLocale($company->locale);
}
// Set locale for modules
if (($alias != 'core') && !empty($company->locale)) {
app()->setLocale($company->locale);
}

// Disable model cache during update
Expand Down

0 comments on commit c539e01

Please sign in to comment.