1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Reduce queries for Invoice POST

This commit is contained in:
= 2022-04-04 13:00:11 +10:00
parent 9722289796
commit c3330b6777

View File

@ -215,7 +215,7 @@ class InvoiceController extends BaseController
public function store(StoreInvoiceRequest $request) public function store(StoreInvoiceRequest $request)
{ {
$client = Client::find($request->input('client_id')); // $client = Client::find($request->input('client_id'));
$invoice = $this->invoice_repo->save($request->all(), InvoiceFactory::create(auth()->user()->company()->id, auth()->user()->id)); $invoice = $this->invoice_repo->save($request->all(), InvoiceFactory::create(auth()->user()->company()->id, auth()->user()->id));