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); }