diff --git a/app/Listeners/Contact/UpdateContactLastLogin.php b/app/Listeners/Contact/UpdateContactLastLogin.php index 25f6a61fe6..efe0a8dadb 100644 --- a/app/Listeners/Contact/UpdateContactLastLogin.php +++ b/app/Listeners/Contact/UpdateContactLastLogin.php @@ -40,6 +40,6 @@ class UpdateContactLastLogin implements ShouldQueue $client_contact->last_login = now(); $client_contact->client->last_login = now(); - $client_contact->save(); + $client_contact->push(); } } diff --git a/app/Models/Client.php b/app/Models/Client.php index 288e68c374..f83d4fe0f2 100644 --- a/app/Models/Client.php +++ b/app/Models/Client.php @@ -94,6 +94,7 @@ class Client extends BaseModel implements HasLocalePreference 'updated_at' => 'timestamp', 'created_at' => 'timestamp', 'deleted_at' => 'timestamp', + 'last_login' => 'timestamp', ]; protected $touches = [];