Skip to content

Commit 38a5e87

Browse files
committed
fix(error): error code 수정 USER_EMAIL
1 parent ab908c5 commit 38a5e87

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/com/example/FixLog/service/MypagePostService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public MypagePostService(PostRepository postRepository, MemberRepository memberR
3939
// 내가 쓴 글 보기
4040
public PageResponseDto<MyPostPageResponseDto> getMyPosts(String email, int page, int sort, int size) {
4141
Member member = memberRepository.findByEmail(email)
42-
.orElseThrow(() -> new CustomException(ErrorCode.MEMBER_NOT_FOUND));
42+
.orElseThrow(() -> new CustomException(ErrorCode.USER_EMAIL_NOT_FOUND));
4343

4444
// 1: 오래된순, 0: 최신순
4545
Sort.Direction direction = (sort == 1) ? Sort.Direction.ASC : Sort.Direction.DESC;
@@ -65,7 +65,7 @@ public PageResponseDto<MyPostPageResponseDto> getMyPosts(String email, int page,
6565
// 내가 좋아요한 글 보기
6666
public PageResponseDto<MyPostPageResponseDto> getLikedPosts(String email, int page, int sort, int size) {
6767
Member member = memberRepository.findByEmail(email)
68-
.orElseThrow(() -> new CustomException(ErrorCode.MEMBER_NOT_FOUND));
68+
.orElseThrow(() -> new CustomException(ErrorCode.USER_EMAIL_NOT_FOUND));
6969

7070
// 1: 오래된순, 0: 최신순
7171
Sort.Direction direction = (sort == 1) ? Sort.Direction.ASC : Sort.Direction.DESC;

0 commit comments

Comments
 (0)