Skip to content

Commit

Permalink
refac(UserHandler): get UserInfos using UserFetchMapper::FromEntityTo…
Browse files Browse the repository at this point in the history
…Json
  • Loading branch information
n3wborn committed Nov 2, 2023
1 parent 6b74382 commit b3b3a74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Service/User/UserHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b3b3a74

Please sign in to comment.