From 6c909f3e697e528b7edb625481e2a13e77b8017e Mon Sep 17 00:00:00 2001 From: Hanvp Date: Sat, 4 Nov 2023 21:38:36 +0900 Subject: [PATCH] =?UTF-8?q?:bug:=20Bug/271=20existsById=20commentId?= =?UTF-8?q?=EB=A1=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../zipdabang/server/service/serviceImpl/RecipeServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/zipdabang/server/service/serviceImpl/RecipeServiceImpl.java b/src/main/java/zipdabang/server/service/serviceImpl/RecipeServiceImpl.java index cb7c739..9096d5d 100644 --- a/src/main/java/zipdabang/server/service/serviceImpl/RecipeServiceImpl.java +++ b/src/main/java/zipdabang/server/service/serviceImpl/RecipeServiceImpl.java @@ -805,7 +805,7 @@ else if (!findComment.getRecipe().equals(findRecipe)) findRecipe.updateComment(-1); } - return commentRepository.existsById(recipeId) == false; + return commentRepository.existsById(commentId) == false; } @Transactional(readOnly = false)