Skip to content

Commit

Permalink
HotFix: 포인트 로그 조회에서 content 는 String 으로 반환하도록 롤백 (#210)
Browse files Browse the repository at this point in the history
fix: 이전 처럼 String 으로 응답하도록 수정
  • Loading branch information
zzoe2346 authored Nov 9, 2024
1 parent d0c6e35 commit cb3c9c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

public record PointLogResponse(
LocalDateTime postTime,
PointLog.Content content,
String content,
int price,
PointLog.Status status
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public Page<PointLogResponse> getPointLogs(Long memberId, Pageable pageable) {
return pointLogRepository.findAllByMember(member, pageable)
.map(pointLog -> new PointLogResponse(
pointLog.getPostTime(),
pointLog.getContent(),
pointLog.getContent().getMessage(),
pointLog.getPrice(),
pointLog.getStatus()
));
Expand Down

0 comments on commit cb3c9c4

Please sign in to comment.