diff --git a/src/Api/Serializer/BasicIPInfoSerializer.php b/src/Api/Serializer/BasicIPInfoSerializer.php index 8ecb15d..277a1be 100644 --- a/src/Api/Serializer/BasicIPInfoSerializer.php +++ b/src/Api/Serializer/BasicIPInfoSerializer.php @@ -34,9 +34,6 @@ protected function getDefaultAttributes($ip): array return [ 'countryCode' => $ip->country_code, - 'dataProvider' => $ip->data_provider, - 'createdAt' => $this->formatDate($ip->created_at), - 'updatedAt' => $this->formatDate($ip->updated_at), ]; } diff --git a/src/Api/Serializer/IPInfoSerializer.php b/src/Api/Serializer/IPInfoSerializer.php index 5a7e0f1..5ce1924 100644 --- a/src/Api/Serializer/IPInfoSerializer.php +++ b/src/Api/Serializer/IPInfoSerializer.php @@ -35,6 +35,9 @@ protected function getDefaultAttributes($ip): array 'threatLevel' => $ip->threat_level, 'threatType' => $ip->threat_types, 'error' => $ip->error, + 'dataProvider' => $ip->data_provider, + 'createdAt' => $this->formatDate($ip->created_at), + 'updatedAt' => $this->formatDate($ip->updated_at), ]; return array_merge($attrs, $moreAttrs);