Skip to content

Commit

Permalink
refact : 불필요한 transactional 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
Due-IT committed Oct 2, 2024
1 parent b1b4e06 commit 6fb7da8
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import com.sundaegukbap.banchango.ingredient.repository.RecipeRequiringIngredientRepository;
import com.sundaegukbap.banchango.recipe.domain.Recipe;
import com.sundaegukbap.banchango.user.domain.User;
import jakarta.transaction.Transactional;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Component;

Expand Down Expand Up @@ -57,7 +56,6 @@ private List<Ingredient> getAllIngredientsWithUser(User user){
return ingredients;
}

@Transactional
private List<Ingredient> getIngredientsWithRecipe(Recipe recipe) {
List<RecipeRequiringIngredient> recipeRequiringIngredientList = recipeRequiringIngredientRepository.findAllByRecipe(recipe);

Expand Down

0 comments on commit 6fb7da8

Please sign in to comment.