From a5c3339cfe861e7194e5425858d997bd3531fbf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Jaussoin?= Date: Wed, 21 Dec 2022 17:19:47 +0100 Subject: [PATCH] Fix #62 Remove fromContact --- flexiapi/app/Device.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/flexiapi/app/Device.php b/flexiapi/app/Device.php index 39b20ad..b0ae46e 100644 --- a/flexiapi/app/Device.php +++ b/flexiapi/app/Device.php @@ -24,14 +24,6 @@ use Carbon\Carbon; class Device extends Model { - public function fromContact(\stdClass $contact) - { - $this->uuid = \substr($contact->{'unique-id'}, 2, -2); - $this->expires_at = Carbon::createFromTimestamp($contact->{'expires-at'}); - $this->update_time = Carbon::createFromTimestamp($contact->{'update-time'}); - $this->user_agent = $contact->{'user-agent'}; - } - public function fromRedisContact(string $contact) { // Ugly :'(