feat: fix test
Laravel CI-CD / Tests Unitaires (push) Successful in 21s Details
Laravel CI-CD / Build & Push Docker (push) Successful in 50s Details
Laravel CI-CD / Deploy via Portainer (push) Successful in 2s Details

This commit is contained in:
Leon Morival 2026-05-18 22:05:00 +02:00
parent 67d838fa65
commit 5ff1fdae4f
1 changed files with 3 additions and 0 deletions

View File

@ -16,8 +16,11 @@ class PostReviewsResource extends JsonResource
'id' => $this->id, 'id' => $this->id,
'rating' => $this->rating, 'rating' => $this->rating,
'comment' => $this->comment, 'comment' => $this->comment,
'meal_post_id' => $this->meal_post_id,
'user_id' => $this->user_id,
'created_at' => $this->created_at, 'created_at' => $this->created_at,
'updated_at' => $this->updated_at, 'updated_at' => $this->updated_at,
'mealPost' => new MealPostsResource($this->whenLoaded('mealPost')),
'user' => $this->whenLoaded('user', function (): ?array { 'user' => $this->whenLoaded('user', function (): ?array {
if (! $this->user) { if (! $this->user) {
return null; return null;