1
0
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:
David Bomba 2022-12-06 17:45:28 +11:00
parent 69c0b5e530
commit 59de0216ac

View File

@ -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(),