1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-13 06:32:40 +01:00

Fixes for company export

This commit is contained in:
= 2021-09-18 14:49:43 +10:00
parent 8c96296f29
commit 1f2aa60bee

View File

@ -498,7 +498,6 @@ class CompanyExport implements ShouldQueue
if(Ninja::isHosted()) {
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)
@ -515,6 +514,10 @@ class CompanyExport implements ShouldQueue
NinjaMailerJob::dispatch($nmo);
if(Ninja::isHosted()){
sleep(3);
unlink($zip_path);
}
}
}