mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-11 13:42:49 +01:00
Reduce extra queries
This commit is contained in:
parent
2cbd95301c
commit
05931eb324
@ -115,7 +115,7 @@ class DashboardController extends BaseController
|
||||
}
|
||||
|
||||
$activities = $activities->orderBy('activities.created_at', 'desc')
|
||||
->with('client.contacts', 'user', 'invoice', 'payment', 'credit', 'account')
|
||||
->with('client.contacts', 'user', 'invoice', 'payment', 'credit', 'account', 'task')
|
||||
->take(50)
|
||||
->get();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user