From a0ce7456901f7697a578d705d73aa6a40428e309 Mon Sep 17 00:00:00 2001 From: FhRh Date: Thu, 3 Oct 2024 06:00:00 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20transactional=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../banchango/recipe/application/RecipeService.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Server/banchango/src/main/java/com/sundaegukbap/banchango/recipe/application/RecipeService.java b/Server/banchango/src/main/java/com/sundaegukbap/banchango/recipe/application/RecipeService.java index 8d60ce3..dd792f6 100644 --- a/Server/banchango/src/main/java/com/sundaegukbap/banchango/recipe/application/RecipeService.java +++ b/Server/banchango/src/main/java/com/sundaegukbap/banchango/recipe/application/RecipeService.java @@ -36,10 +36,12 @@ public class RecipeService { private final AiRecipeRecommendClient aiRecipeRecommendClient; @EventListener + @Transactional public void refreshRecommendedRecipes(IngredientChangedEvent event) { refreshRecommendedRecipes(event.userId(), RecipeCategory.전체); } + @Transactional public void changeRecipeCategory(Long userId, RecipeCategory recipeCategory) { refreshRecommendedRecipes(userId, recipeCategory); }