Skip to content

Commit 2245f42

Browse files
committed
fixes return in delete method.
1 parent d23483d commit 2245f42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data-r2dbc-fn/src/main/kotlin/com/example/demo/DemoApplication.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ class PostHandler(private val posts: PostRepository) {
125125
suspend fun delete(req: ServerRequest): ServerResponse {
126126
val deletedCount = this.posts.deleteById(req.pathVariable("id").toLong())
127127
println("$deletedCount posts deleted")
128-
return notFound().buildAndAwait()
128+
return noContent().buildAndAwait()
129129
}
130130
}
131131

0 commit comments

Comments
 (0)