1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Fixes for preview

This commit is contained in:
David Bomba 2021-08-06 17:30:54 +10:00
parent d7009f5072
commit 019427602c

View File

@ -300,7 +300,9 @@ class PreviewController extends BaseController
->increment()
->batch();
}
DB::connection()->getDoctrineConnection()->close();
DB::disconnect();
$response = Response::make($file_path, 200);
$response->header('Content-Type', 'application/pdf');