From 585e443ffd8310f4b87d9d2f361e73ae2e6e41bf Mon Sep 17 00:00:00 2001 From: Kamil Date: Mon, 25 Mar 2024 12:14:56 +0100 Subject: [PATCH] #270 - fix connected with previous PR --- app/Infrastructure/Http/Resources/VacationRequestResource.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Infrastructure/Http/Resources/VacationRequestResource.php b/app/Infrastructure/Http/Resources/VacationRequestResource.php index a1414b52..a5a785a3 100644 --- a/app/Infrastructure/Http/Resources/VacationRequestResource.php +++ b/app/Infrastructure/Http/Resources/VacationRequestResource.php @@ -30,7 +30,7 @@ public function toArray($request): array return [ "id" => $this->id, "name" => $this->name, - "user" => new SimpleUserResource($user), + "user" => new SimpleUserResource($this->user), "type" => $this->type, "isVacation" => $this->configRetriever->isVacation($this->type), "state" => $this->state,