diff --git a/api/src/Controller/FruitController.php b/api/src/Controller/FruitController.php index 5635980..a94e1bb 100644 --- a/api/src/Controller/FruitController.php +++ b/api/src/Controller/FruitController.php @@ -182,7 +182,7 @@ public function addToFavorite( return $this->json([ 'fruit' => $favorite->getFruit()->toArray(), - 'date_added' => $favorite->getId(), + 'date_added' => $favorite->getDateAdded(), ]); }