fix: fix last consulted list (#2887)

This commit is contained in:
Alexis Saettler
2019-08-10 23:54:59 +02:00
committed by GitHub
parent 387e45b85d
commit 103b27b0d7
3 changed files with 14 additions and 5 deletions
+2 -5
View File
@@ -36,14 +36,11 @@ class DashboardController extends Controller
$lastUpdatedContacts = $account->contacts()
->real()
->active()
->latest('updated_at')
->alive()
->latest('last_consulted_at')
->limit(10)
->get();
foreach ($lastUpdatedContacts as $contact) {
if ($contact->is_dead) {
continue;
}
$data = [
'id' => $contact->hashID(),
'has_avatar' => $contact->has_avatar,