Skip to content

Commit

Permalink
Merge pull request #223 from OutDecision/issue/168
Browse files Browse the repository at this point in the history
🎨 [UPDATE]: 게시글 수정 복구
  • Loading branch information
sye1101 authored May 26, 2024
2 parents f7ea8f9 + 4b32531 commit 31ccc76
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 31ccc76

Please sign in to comment.