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)