Skip to content

Commit 3162514

Browse files
committed
Correct return value.
1 parent 5f68978 commit 3162514

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@ class CommentsController(
141141
@PathVariable("documentId") documentId: UUID,
142142
@PathVariable("commentId") commentId: UUID,
143143
@RequestBody deleteCommentInput: DeleteCommentInput
144-
): Comment {
144+
): CommentView {
145145
log("deleteCommentWithPossibleThread called with id $documentId and commentId $commentId")
146-
return commentService.deleteComment(commentId = commentId, loggedInIdent = getIdent()!!, behandlingTildeltIdent = deleteCommentInput.behandlingTildeltIdent)
146+
return mapCommentToView(commentService.deleteComment(commentId = commentId, loggedInIdent = getIdent()!!, behandlingTildeltIdent = deleteCommentInput.behandlingTildeltIdent))
147147
}
148148

149149
private fun mapCommentToView(comment: Comment): CommentView =

0 commit comments

Comments
 (0)