Skip to content

Commit 637259f

Browse files
committed
CLAP-291 HotFix: 댓글 히스토리 아이디 전달
1 parent b2a08d3 commit 637259f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/main/java/clap/server/adapter/inbound/web/dto/history/response/FindTaskHistoryResponse.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,15 @@ public static record TaskDetails(
2828
) {}
2929

3030
public static record CommentDetails(
31+
Long commentId,
3132
String nickName,
3233
String profileImageUrl,
3334
boolean isModified,
3435
String comment
3536
) {}
3637

3738
public static record CommentFileDetails(
39+
Long commentId,
3840
String nickName,
3941
String profileImageUrl,
4042
boolean isModified,

src/main/java/clap/server/application/mapper/TaskHistoryResponseMapper.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public static FindTaskHistoryResponse toFindTaskHistoryResponse(List<TaskHistory
3636
case COMMENT -> new FindTaskHistoryResponse.Details(
3737
null,
3838
new FindTaskHistoryResponse.CommentDetails(
39+
taskHistory.getComment().getCommentId(),
3940
taskHistory.getComment().getMember().getNickname(),
4041
taskHistory.getComment().getMember().getImageUrl(),
4142
taskHistory.getComment().isModified(),
@@ -50,6 +51,7 @@ public static FindTaskHistoryResponse toFindTaskHistoryResponse(List<TaskHistory
5051
.filter(attachment -> attachment.getComment().getCommentId().equals(taskHistory.getComment().getCommentId()))
5152
.findFirst()
5253
.map(attachment -> new FindTaskHistoryResponse.CommentFileDetails(
54+
taskHistory.getComment().getCommentId(),
5355
taskHistory.getComment().getMember().getNickname(),
5456
taskHistory.getComment().getMember().getImageUrl(),
5557
taskHistory.getComment().isModified(),

0 commit comments

Comments
 (0)