Minor cleanup

This commit is contained in:
David Bomba 2023-07-07 15:05:08 +10:00
parent fb37fc40a3
commit 8d9f9468e1

View File

@ -466,10 +466,9 @@ class CompanyExport implements ShouldQueue
$storage_file_path = Storage::disk(config('filesystems.default'))->url('backups/'.$file_name); $storage_file_path = Storage::disk(config('filesystems.default'))->url('backups/'.$file_name);
$storage_path = Storage::disk(config('filesystems.default'))->path('backups/'.$file_name); $storage_path = Storage::disk(config('filesystems.default'))->path('backups/'.$file_name);
$url = Cache::get($this->hash); $url = Cache::get($this->hash);
Cache::put($this->hash, $storage_path, now()->addHour()); Cache::put($this->hash, $storage_path, now()->addHour());
App::forgetInstance('translator'); App::forgetInstance('translator');
$t = app('translator'); $t = app('translator');
$t->replace(Ninja::transformTranslations($this->company->settings)); $t->replace(Ninja::transformTranslations($this->company->settings));