Skip to content

Commit

Permalink
fix: 키워드, 이미지 등록 순서 변경 (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
EunjiShin authored Aug 16, 2024
1 parent 54194ed commit 30ae0c0
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,12 @@ public void createAdmin(
Seat seat = getSeat(block.getId(), command.seatNumber());

Review review = convertToDomain(member, blockRow, seat, command);
Review savedReview = reviewRepository.save(review);

List<String> imageUrls = reviewImageProcessor.getImageUrl(command.images());
reviewImageProcessor.processImages(review, imageUrls);

Map<Long, Keyword> keywordMap =
reviewKeywordProcessor.processKeywords(review, command.good(), command.bad());
reviewImageProcessor.processImages(review, imageUrls);

Review savedReview = reviewRepository.save(review);
reviewKeywordProcessor.updateBlockTopKeywords(savedReview);
savedReview.setKeywordMap(keywordMap);

Expand Down

0 comments on commit 30ae0c0

Please sign in to comment.