Skip to content

Commit

Permalink
Merge pull request Kernel360#124 from Hju95/#88예약게시글삭제
Browse files Browse the repository at this point in the history
[fix] 예약창 전체조회, 상세조회 시 해시태그 응답값 버그 수정
  • Loading branch information
Hju95 authored Jan 19, 2024
2 parents 610d9d3 + ae59537 commit c6f1799
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.kernel360.kernelsquare.domain.reservation_article.dto;

import com.kernel360.kernelsquare.domain.hashtag.entity.HashTag;
import com.kernel360.kernelsquare.domain.image.utils.ImageUtils;
import com.kernel360.kernelsquare.domain.member.entity.Member;
import com.kernel360.kernelsquare.domain.reservation_article.entity.ReservationArticle;
Expand Down Expand Up @@ -33,7 +34,7 @@ public static FindAllReservationArticleResponse of(
member.getLevel().getName(),
ImageUtils.makeImageUrl(member.getLevel().getImageUrl()),
article.getTitle(),
article.getHashTagList().stream().map(String::valueOf).toList(),
article.getHashTagList().stream().map(HashTag::getContent).toList(),
article.getCreatedDate(),
article.getModifiedDate(),
fullCheck
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.kernel360.kernelsquare.domain.reservation_article.dto;

import com.kernel360.kernelsquare.domain.hashtag.entity.HashTag;
import com.kernel360.kernelsquare.domain.image.utils.ImageUtils;
import com.kernel360.kernelsquare.domain.level.entity.Level;
import com.kernel360.kernelsquare.domain.member.entity.Member;
Expand Down Expand Up @@ -37,7 +38,7 @@ public static FindReservationArticleResponse of(
ImageUtils.makeImageUrl(level.getImageUrl()),
article.getTitle(),
article.getContent(),
article.getHashTagList().stream().map(String::valueOf).toList(),
article.getHashTagList().stream().map(HashTag::getContent).toList(),
reservationDtos,
article.getCreatedDate(),
article.getModifiedDate()
Expand Down

0 comments on commit c6f1799

Please sign in to comment.