1
0
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:
Hillel Coren 2016-09-05 08:24:41 +03:00
parent 2cbd95301c
commit 05931eb324

View File

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