From 4b325315f355a2951fd2a54294d1d5f64341f96e Mon Sep 17 00:00:00 2001 From: sye1101 Date: Mon, 27 May 2024 02:46:29 +0900 Subject: [PATCH] =?UTF-8?q?[UPDATE]:=20=EA=B2=8C=EC=8B=9C=EA=B8=80=20?= =?UTF-8?q?=EC=88=98=EC=A0=95=20=EB=B3=B5=EA=B5=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../OutDecision/domain/post/service/PostServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/KGUcapstone/OutDecision/domain/post/service/PostServiceImpl.java b/src/main/java/KGUcapstone/OutDecision/domain/post/service/PostServiceImpl.java index e846f48..c27d7e2 100644 --- a/src/main/java/KGUcapstone/OutDecision/domain/post/service/PostServiceImpl.java +++ b/src/main/java/KGUcapstone/OutDecision/domain/post/service/PostServiceImpl.java @@ -114,7 +114,7 @@ public PostDTO viewPost(Long postId) { Long memberId; // 로그인 체크 if(memberOptional.isPresent()) memberId = memberOptional.get().getId(); - else throw new MemberHandler(ErrorStatus.MEMBER_NOT_FOUND); + else memberId = 0L; Post post = postRepository.findById(postId) .orElseThrow(() -> new PostHandler(ErrorStatus.POST_NOT_FOUND));