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 c27d7e2..f78ac1d 100644 --- a/src/main/java/KGUcapstone/OutDecision/domain/post/service/PostServiceImpl.java +++ b/src/main/java/KGUcapstone/OutDecision/domain/post/service/PostServiceImpl.java @@ -167,11 +167,11 @@ public PostDTO viewPost(Long postId) { @Override public boolean updatePost(Long postId, UploadPostDTO request, List optionNames, List optionImages, List originImages) { - Optional memberOptional = findMemberService.findLoginMember(); - Long memberId; +// Optional memberOptional = findMemberService.findLoginMember(); + Long memberId = 2024L; // 로그인 체크 - if(memberOptional.isPresent()) memberId = memberOptional.get().getId(); - else throw new MemberHandler(ErrorStatus.MEMBER_NOT_FOUND); +// if(memberOptional.isPresent()) memberId = memberOptional.get().getId(); +// else throw new MemberHandler(ErrorStatus.MEMBER_NOT_FOUND); Post post = postRepository.findById(postId) .orElseThrow(() -> new PostHandler(ErrorStatus.POST_NOT_FOUND));