mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 11:04:37 -04: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);
|
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 = Response::make($pdf, 200);
|
||||||
$response->header('Content-Type', 'application/pdf');
|
$response->header('Content-Type', 'application/pdf');
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user