1
0
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:
David Bomba 2023-02-25 15:40:04 +11:00
parent 2a9fe02546
commit c269bc54c7
2 changed files with 50 additions and 28 deletions

View File

@ -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