From b3b3a74705623a9f42f1bc54834b880c72b81541 Mon Sep 17 00:00:00 2001 From: n3wborn Date: Thu, 2 Nov 2023 17:08:35 +0100 Subject: [PATCH] refac(UserHandler): get UserInfos using UserFetchMapper::FromEntityToJson --- src/Service/User/UserHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Service/User/UserHandler.php b/src/Service/User/UserHandler.php index 02539fa..959ec97 100644 --- a/src/Service/User/UserHandler.php +++ b/src/Service/User/UserHandler.php @@ -29,7 +29,7 @@ public function handleGetUserInfos(?User $user): JsonResponse && throw new NotFoundException(ApiMessages::translate(ApiMessages::USER_NOT_FOUND)); $userInfos = $this->finder->get($user); - $result = UserMapper::fromEntityToJson($userInfos); + $result = UserFetchMapper::fromEntityToJson($userInfos); $response = new ApiResponse($result); } catch (NotFoundException $exception) { $this->logger->logNotice($exception);