Skip to content

Commit

Permalink
fix : transactional 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Due-IT committed Oct 2, 2024
1 parent bfd7325 commit a0ce745
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit a0ce745

Please sign in to comment.