Skip to content

Commit

Permalink
⚡Feat: summitId 관련 service 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
eunxeum committed Nov 23, 2024
1 parent 259486b commit 9594164
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@ public class BoardService {
// 게시글 저장
@Transactional
public Long boardSave(Long memberId, BoardSaveReqDto boardSaveReqDto) {
log.info("Received BoardSaveReqDto: {}", boardSaveReqDto);
Member member = memberRepository.findById(memberId)
.orElseThrow(() -> new IllegalArgumentException("회원이 존재하지 않습니다. " + memberId));

Board board = boardSaveReqDto.toEntity(member);
log.info("Board object created: {}", board);

List<Feed> feeds = getFeedsByMember(member);
boardImageSave(board, boardSaveReqDto.imageUrl(), feeds);
Expand Down

0 comments on commit 9594164

Please sign in to comment.