Split Entities for remove nullable variables
This commit is contained in:
@@ -73,7 +73,6 @@ fun Route.comment(repo: CommentRepository) {
|
||||
assertCan(CREATE, newComment)
|
||||
repo.comment(newComment)
|
||||
|
||||
|
||||
call.respond(HttpStatusCode.Created, newComment)
|
||||
}
|
||||
|
||||
@@ -86,4 +85,4 @@ fun Route.comment(repo: CommentRepository) {
|
||||
|
||||
call.respond(HttpStatusCode.OK, comment)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user