1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-16 14:32:26 +02: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(),