Skip to content

Commit

Permalink
refactor: UserGroup 기능 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
SangWoon123 committed May 6, 2024
1 parent f4d4fb4 commit 43bf485
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
public interface GroupInviteRepository extends JpaRepository<GroupInvite, Long> {
boolean existsByGroupRoomIdAndInvitedUserAndInviteStatus(Long groupId, User user, InviteStatus inviteStatus);

Optional<GroupInvite> findByInviteCode(String code);
Optional<GroupInvite> findByGroupInviteCode(String code);
}
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down

0 comments on commit 43bf485

Please sign in to comment.