revert 'finish update console only set company for modules..' this commit.

This commit is contained in:
Cüneyt Şentürk 2022-03-02 19:03:06 +03:00
parent 48fb23bb50
commit c539e011fa

View File

@ -47,7 +47,6 @@ class FinishUpdate extends Command
throw new \Exception(trans('modules.errors.finish', ['module' => $alias]));
}
if ($alias != 'core') {
$company = company($company_id);
if (empty($company)) {
@ -57,10 +56,9 @@ class FinishUpdate extends Command
$company->makeCurrent();
// Set locale for modules
if (empty($company->locale)) {
if (($alias != 'core') && !empty($company->locale)) {
app()->setLocale($company->locale);
}
}
// Disable model cache during update
config(['laravel-model-caching.enabled' => false]);