From 43bf48502d234e8a91c0ae5d16e25076c149c760 Mon Sep 17 00:00:00 2001 From: SangWoon123 Date: Tue, 7 May 2024 00:22:23 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20UserGroup=20=EA=B8=B0=EB=8A=A5=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../planding/domain/group/repository/GroupInviteRepository.java | 2 +- .../planding/domain/group/service/GroupInviteQueryService.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/tukorea/planding/domain/group/repository/GroupInviteRepository.java b/src/main/java/com/tukorea/planding/domain/group/repository/GroupInviteRepository.java index 48a3c86..011415d 100644 --- a/src/main/java/com/tukorea/planding/domain/group/repository/GroupInviteRepository.java +++ b/src/main/java/com/tukorea/planding/domain/group/repository/GroupInviteRepository.java @@ -10,5 +10,5 @@ public interface GroupInviteRepository extends JpaRepository { boolean existsByGroupRoomIdAndInvitedUserAndInviteStatus(Long groupId, User user, InviteStatus inviteStatus); - Optional findByInviteCode(String code); + Optional findByGroupInviteCode(String code); } diff --git a/src/main/java/com/tukorea/planding/domain/group/service/GroupInviteQueryService.java b/src/main/java/com/tukorea/planding/domain/group/service/GroupInviteQueryService.java index 098ce6d..81f43f2 100644 --- a/src/main/java/com/tukorea/planding/domain/group/service/GroupInviteQueryService.java +++ b/src/main/java/com/tukorea/planding/domain/group/service/GroupInviteQueryService.java @@ -20,7 +20,7 @@ public class GroupInviteQueryService { private final GroupInviteRepositoryCustom groupInviteRepositoryCustom; public GroupInvite getInvitationByInviteCode(String inviteCode) { - return groupInviteRepository.findByInviteCode(inviteCode) + return groupInviteRepository.findByGroupInviteCode(inviteCode) .orElseThrow(() -> new BusinessException(ErrorCode.NOTEXIST_INVITE)); }