From cf5df83352f23cb6bb2df5a14ceec0444e5ea720 Mon Sep 17 00:00:00 2001 From: saewoo1 Date: Sat, 11 Jan 2025 18:34:31 +0900 Subject: [PATCH] =?UTF-8?q?[BE]=20FIX:=20=EC=9C=A0=EC=A0=80=20=ED=94=84?= =?UTF-8?q?=EB=A1=9C=ED=95=84=20=EC=A1=B0=ED=9A=8C=20=EC=8B=9C=20=EC=97=B0?= =?UTF-8?q?=EC=9E=A5=EA=B4=80=20=EA=B4=80=EB=A0=A8=20=EC=A0=95=EB=B3=B4=20?= =?UTF-8?q?=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 상점 도입 이후 뷰에서 사용하지 않는 정보 제거 --- .../main/java/org/ftclub/cabinet/mapper/UserMapper.java | 1 - .../ftclub/cabinet/user/service/UserFacadeService.java | 8 ++------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/backend/src/main/java/org/ftclub/cabinet/mapper/UserMapper.java b/backend/src/main/java/org/ftclub/cabinet/mapper/UserMapper.java index e4720701c..b885a24b1 100644 --- a/backend/src/main/java/org/ftclub/cabinet/mapper/UserMapper.java +++ b/backend/src/main/java/org/ftclub/cabinet/mapper/UserMapper.java @@ -43,7 +43,6 @@ public interface UserMapper { @Mapping(target = "cabinetId", source = "cabinet.id") MyProfileResponseDto toMyProfileResponseDto(UserSessionDto user, Cabinet cabinet, BanHistory banHistory, - LentExtensionResponseDto lentExtensionResponseDto, AlarmTypeResponseDto alarmTypes, boolean isDeviceTokenExpired, Long coins); BlockedUserPaginationDto toBlockedUserPaginationDto(List result, diff --git a/backend/src/main/java/org/ftclub/cabinet/user/service/UserFacadeService.java b/backend/src/main/java/org/ftclub/cabinet/user/service/UserFacadeService.java index 66a4054c7..f63412384 100644 --- a/backend/src/main/java/org/ftclub/cabinet/user/service/UserFacadeService.java +++ b/backend/src/main/java/org/ftclub/cabinet/user/service/UserFacadeService.java @@ -62,17 +62,13 @@ public MyProfileResponseDto getProfile(UserSessionDto user) { Cabinet cabinet = cabinetQueryService.findUserActiveCabinet(userId); BanHistory banHistory = banHistoryQueryService.findRecentActiveBanHistory(userId, LocalDateTime.now()).orElse(null); - LentExtension lentExtension = lentExtensionQueryService.findActiveLentExtension( - userId); - LentExtensionResponseDto lentExtensionResponseDto = userMapper.toLentExtensionResponseDto( - lentExtension); User currentUser = userQueryService.getUser(userId); AlarmTypeResponseDto userAlarmTypes = currentUser.getAlarmTypes(); boolean isDeviceTokenExpired = userAlarmTypes.isPush() && fcmTokenRedisService.findByUserName(user.getName()).isEmpty(); Long coins = currentUser.getCoin(); - return userMapper.toMyProfileResponseDto(user, cabinet, banHistory, - lentExtensionResponseDto, userAlarmTypes, isDeviceTokenExpired, coins); + return userMapper.toMyProfileResponseDto(user, cabinet, banHistory, userAlarmTypes, + isDeviceTokenExpired, coins); } /**