mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 12:12:48 +01:00
improve query efficiency
This commit is contained in:
parent
69c0b5e530
commit
59de0216ac
@ -219,6 +219,9 @@ class InvoiceController extends BaseController
|
||||
$clients = $clients->where('clients.user_id', '=', Auth::user()->id);
|
||||
}
|
||||
|
||||
if($clientPublicId != 0)
|
||||
$clients->where('public_id', $clientPublicId);
|
||||
|
||||
$data = [
|
||||
'clients' => $clients->get(),
|
||||
'entityType' => $invoice->getEntityType(),
|
||||
|
Loading…
Reference in New Issue
Block a user