diff --git a/src/main/java/com/example/api/friend/adapter/in/rest/FriendController.java b/src/main/java/com/example/api/friend/adapter/in/rest/FriendController.java index aac1451..3cc71ef 100644 --- a/src/main/java/com/example/api/friend/adapter/in/rest/FriendController.java +++ b/src/main/java/com/example/api/friend/adapter/in/rest/FriendController.java @@ -41,7 +41,7 @@ public FriendDto addFriend(@RequestBody FriendDto friendDto) { log.error("FriendController::addFriend: Login is needed"); throw new CustomException(ErrorCodeEnum.LOGIN_IS_NOT_DONE); } - friendDto.setFriendId(securityUser.getUserId()); + friendDto.setUserId(securityUser.getUserId()); return addFriendUsecase.addFriend(friendDto); }