mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Clean up for pdfmocks
This commit is contained in:
parent
2a9fe02546
commit
c269bc54c7
@ -183,7 +183,7 @@ class PreviewController extends BaseController
|
||||
return response()->json(['message' => 'This server cannot handle this request.'], 400);
|
||||
}
|
||||
|
||||
$pdf = (new PdfMock(Invoice::class))->build()->getPdf();
|
||||
$pdf = (new PdfMock($request->all(), auth()->user()->company()))->build()->getPdf();
|
||||
|
||||
$response = Response::make($pdf, 200);
|
||||
$response->header('Content-Type', 'application/pdf');
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user