diff --git a/CHANGELOG b/CHANGELOG index 41530b39087..d34fae178c3 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,6 @@ UNRELEASED CHANGES: +* Fix called_at field in the Call object returned by the API * Add Linkedin URL in the Contact object returned by the API RELEASED VERSIONS: diff --git a/app/Http/Resources/Call/Call.php b/app/Http/Resources/Call/Call.php index 34d5d788b09..2a3b9949256 100644 --- a/app/Http/Resources/Call/Call.php +++ b/app/Http/Resources/Call/Call.php @@ -18,7 +18,7 @@ public function toArray($request) return [ 'id' => $this->id, 'object' => 'call', - 'called_at' => $this->created_at->format(config('api.timestamp_format')), + 'called_at' => $this->called_at->format(config('api.timestamp_format')), 'content' => $this->content, 'account' => [ 'id' => $this->account->id,