Skip to content

Commit 11619fb

Browse files
committed
Include optional parentId in comment.
1 parent ff5a1c7 commit 11619fb

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/main/kotlin/no/nav/klage/document/api/CommentsController.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ class CommentsController(
156156
),
157157
comments = comment.comments.map { mapCommentToView(it) },
158158
created = comment.created,
159-
modified = comment.modified
159+
modified = comment.modified,
160+
parentId = comment.parentCommentId,
160161
)
161162

162163
private fun log(message: String) {

src/main/kotlin/no/nav/klage/document/api/views/CommentView.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ data class CommentView(
99
val author: Author,
1010
val comments: List<CommentView> = emptyList(),
1111
val created: LocalDateTime,
12-
val modified: LocalDateTime
12+
val modified: LocalDateTime,
13+
val parentId: UUID?,
1314
) {
1415
data class Author(
1516
val name: String,

0 commit comments

Comments
 (0)