mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
commit
b8aa11ec85
@ -270,7 +270,6 @@ class PreviewController extends BaseController
|
||||
DB::connection(config('database.default'))->rollBack();
|
||||
|
||||
if (request()->query('html') == 'true') {
|
||||
DB::purge(config('database.default'));
|
||||
return $maker->getCompiledHTML;
|
||||
}
|
||||
|
||||
@ -279,8 +278,6 @@ class PreviewController extends BaseController
|
||||
catch(\Exception $e){
|
||||
|
||||
DB::connection(config('database.default'))->rollBack();
|
||||
DB::purge(config('database.default'));
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
@ -304,7 +301,6 @@ class PreviewController extends BaseController
|
||||
->batch();
|
||||
}
|
||||
|
||||
DB::purge(config('database.default'));
|
||||
|
||||
$response = Response::make($file_path, 200);
|
||||
$response->header('Content-Type', 'application/pdf');
|
||||
|
Loading…
Reference in New Issue
Block a user