mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Eager load contact with activities
This commit is contained in:
parent
147a1b1a94
commit
7b5cd9e4c1
@ -252,7 +252,7 @@ class DashboardRepository
|
||||
}
|
||||
|
||||
return $activities->orderBy('activities.created_at', 'desc')
|
||||
->with('client.contacts', 'user', 'invoice', 'payment', 'credit', 'account', 'task', 'expense')
|
||||
->with('client.contacts', 'user', 'invoice', 'payment', 'credit', 'account', 'task', 'expense', 'contact')
|
||||
->take(50)
|
||||
->get();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user