mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-10 04:04:37 -04:00
Fixes for company export
This commit is contained in:
parent
8c96296f29
commit
1f2aa60bee
@ -498,7 +498,6 @@ class CompanyExport implements ShouldQueue
|
|||||||
|
|
||||||
if(Ninja::isHosted()) {
|
if(Ninja::isHosted()) {
|
||||||
Storage::disk(config('filesystems.default'))->put('backups/'.$file_name, file_get_contents($zip_path));
|
Storage::disk(config('filesystems.default'))->put('backups/'.$file_name, file_get_contents($zip_path));
|
||||||
unlink($zip_path);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$storage_file_path = Storage::disk(config('filesystems.default'))->url('backups/'.$file_name)
|
$storage_file_path = Storage::disk(config('filesystems.default'))->url('backups/'.$file_name)
|
||||||
@ -515,6 +514,10 @@ class CompanyExport implements ShouldQueue
|
|||||||
|
|
||||||
NinjaMailerJob::dispatch($nmo);
|
NinjaMailerJob::dispatch($nmo);
|
||||||
|
|
||||||
|
if(Ninja::isHosted()){
|
||||||
|
sleep(3);
|
||||||
|
unlink($zip_path);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user