Skip to content

Commit

Permalink
Merge pull request #224 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 31ccc76 + 9b3d6f5 commit 9724302
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,11 @@ public PostDTO viewPost(Long postId) {
@Override
public boolean updatePost(Long postId, UploadPostDTO request, List<String> optionNames,
List<MultipartFile> optionImages, List<String> originImages) {
Optional<Member> memberOptional = findMemberService.findLoginMember();
Long memberId;
// Optional<Member> 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));
Expand Down

0 comments on commit 9724302

Please sign in to comment.