From 43316105464e9982123c5241e1c8d9c674f10ee0 Mon Sep 17 00:00:00 2001 From: smg0725 Date: Thu, 1 Aug 2024 00:41:06 +0900 Subject: [PATCH] =?UTF-8?q?[CHORE]=20=EC=BB=A8=EB=B2=A4=EC=85=98=20?= =?UTF-8?q?=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/tiki/server/member/adapter/MemberFinder.java | 3 +-- .../java/com/tiki/server/member/entity/Member.java | 10 +++++++--- .../com/tiki/server/member/service/MemberService.java | 1 - 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/tiki/server/member/adapter/MemberFinder.java b/src/main/java/com/tiki/server/member/adapter/MemberFinder.java index b7509bd1..6a812554 100644 --- a/src/main/java/com/tiki/server/member/adapter/MemberFinder.java +++ b/src/main/java/com/tiki/server/member/adapter/MemberFinder.java @@ -23,8 +23,7 @@ public Optional findByEmail(String email) { } public Member findById(long memberId) { - return memberRepository.findById(memberId) - .orElseThrow(() -> new MemberException(INVALID_MEMBER)); + return memberRepository.findById(memberId).orElseThrow(() -> new MemberException(INVALID_MEMBER)); } public Member checkEmpty(String email) { diff --git a/src/main/java/com/tiki/server/member/entity/Member.java b/src/main/java/com/tiki/server/member/entity/Member.java index 05c03c85..a776ac6d 100644 --- a/src/main/java/com/tiki/server/member/entity/Member.java +++ b/src/main/java/com/tiki/server/member/entity/Member.java @@ -43,9 +43,13 @@ public class Member extends BaseTime { @Enumerated(value = STRING) private University univ; - public static Member of(String email, String password, String passwordChecker, String name, LocalDate birth, - University univ) { - + public static Member of( + String email, + String password, + String passwordChecker, + String name, + LocalDate birth, + University univ) { val member = Member.builder() .email(email) .password(password) diff --git a/src/main/java/com/tiki/server/member/service/MemberService.java b/src/main/java/com/tiki/server/member/service/MemberService.java index 9a1bf4ea..1ed73237 100644 --- a/src/main/java/com/tiki/server/member/service/MemberService.java +++ b/src/main/java/com/tiki/server/member/service/MemberService.java @@ -64,7 +64,6 @@ private void saveMember(Member member) { memberSaver.save(member); } - public BelongTeamsGetResponse findBelongTeams(long memberId) { return BelongTeamsGetResponse.from(memberTeamManagerFinder.findBelongTeamByMemberId(memberId)); }