finish update console only set company for modules..
This commit is contained in:
parent
67379739b1
commit
b59f4006ed
@ -47,6 +47,7 @@ class FinishUpdate extends Command
|
||||
throw new \Exception(trans('modules.errors.finish', ['module' => $alias]));
|
||||
}
|
||||
|
||||
if ($alias != 'core') {
|
||||
$company = company($company_id);
|
||||
|
||||
if (empty($company)) {
|
||||
@ -56,9 +57,10 @@ class FinishUpdate extends Command
|
||||
$company->makeCurrent();
|
||||
|
||||
// Set locale for modules
|
||||
if (($alias != 'core') && !empty($company->locale)) {
|
||||
if (empty($company->locale)) {
|
||||
app()->setLocale($company->locale);
|
||||
}
|
||||
}
|
||||
|
||||
// Disable model cache during update
|
||||
config(['laravel-model-caching.enabled' => false]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user