From b79667cda6ea427e0c184a4d317a171308c07dbb Mon Sep 17 00:00:00 2001 From: usbharu <64310155+usbharu@users.noreply.github.com> Date: Tue, 8 Aug 2023 17:46:08 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=E3=83=AA=E3=82=A2=E3=82=AF=E3=82=B7?= =?UTF-8?q?=E3=83=A7=E3=83=B3API=E3=81=AE=E3=83=AC=E3=82=B9=E3=83=9D?= =?UTF-8?q?=E3=83=B3=E3=82=B9=E6=8C=87=E5=AE=9A=E5=BF=98=E3=82=8C=E3=82=92?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kotlin/dev/usbharu/hideout/routing/api/internal/v1/Posts.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/kotlin/dev/usbharu/hideout/routing/api/internal/v1/Posts.kt b/src/main/kotlin/dev/usbharu/hideout/routing/api/internal/v1/Posts.kt index eae2a3e6..a34572fd 100644 --- a/src/main/kotlin/dev/usbharu/hideout/routing/api/internal/v1/Posts.kt +++ b/src/main/kotlin/dev/usbharu/hideout/routing/api/internal/v1/Posts.kt @@ -50,6 +50,7 @@ fun Route.posts(postApiService: IPostApiService, reactionService: IReactionServi } reactionService.sendReaction(reaction.reaction ?: "❤", userId, postId) + call.respond(HttpStatusCode.NoContent) } delete { val jwtPrincipal = call.principal() ?: throw IllegalStateException("no principal") @@ -57,6 +58,7 @@ fun Route.posts(postApiService: IPostApiService, reactionService: IReactionServi val postId = call.parameters["id"]?.toLong() ?: throw ParameterNotExistException("Parameter(id='postsId') does not exist.") reactionService.removeReaction(userId, postId) + call.respond(HttpStatusCode.NoContent) } } }