Skip to content

Commit 67d2661

Browse files
committed
No need for optional request body.
1 parent 4df17cd commit 67d2661

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
@@ -140,10 +140,10 @@ class CommentsController(
140140
fun deleteCommentWithPossibleThread(
141141
@PathVariable("documentId") documentId: UUID,
142142
@PathVariable("commentId") commentId: UUID,
143-
@RequestBody(required = false) deleteCommentInput: DeleteCommentInput?
143+
@RequestBody deleteCommentInput: DeleteCommentInput
144144
) {
145145
log("deleteCommentWithPossibleThread called with id $documentId and commentId $commentId")
146-
commentService.deleteComment(commentId = commentId, loggedInIdent = getIdent()!!, behandlingTildeltIdent = deleteCommentInput?.behandlingTildeltIdent)
146+
commentService.deleteComment(commentId = commentId, loggedInIdent = getIdent()!!, behandlingTildeltIdent = deleteCommentInput.behandlingTildeltIdent)
147147
}
148148

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

0 commit comments

Comments
 (0)