Add UUID instead of actual ID to identify contacts (#777)

Close #381
This commit is contained in:
Danny
2018-04-08 13:23:13 -05:00
committed by Régis Freyd
parent 04607f3eb5
commit 3ba96cf18b
61 changed files with 618 additions and 119 deletions
+3 -3
View File
@@ -28,7 +28,7 @@ class DashboardController extends Controller
$lastUpdatedContacts = $account->contacts()->where('is_partial', false)->latest('updated_at')->limit(10)->get();
foreach ($lastUpdatedContacts as $contact) {
$data = [
'id' => $contact->id,
'id' => $contact->hashID(),
'has_avatar' => $contact->has_avatar,
'avatar_url' => $contact->getAvatarURL(110),
'initials' => $contact->getInitials(),
@@ -86,7 +86,7 @@ class DashboardController extends Controller
'id' => $call->id,
'called_at' => \App\Helpers\DateHelper::getShortDate($call->called_at),
'name' => $call->contact->getIncompleteName(),
'contact_id' => $call->contact->id,
'contact_id' => $call->contact->hashID(),
];
$callsCollection->push($data);
}
@@ -110,7 +110,7 @@ class DashboardController extends Controller
'created_at' => \App\Helpers\DateHelper::getShortDate($note->created_at),
'name' => $note->contact->getIncompleteName(),
'contact' => [
'id' => $note->contact->id,
'id' => $note->contact->hashID(),
'has_avatar' => $note->contact->has_avatar,
'avatar_url' => $note->contact->getAvatarURL(110),
'initials' => $note->contact->getInitials(),