Skip to content

Commit

Permalink
fix: add transactional on deleting step
Browse files Browse the repository at this point in the history
  • Loading branch information
geoje committed Sep 23, 2024
1 parent 6a0b781 commit 4fce6ec
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public void saveRecipeSteps(Long savedRecipeId, List<RecipeStepRequest> recipeSt
recipeStepRequests.forEach(recipeStepRequest -> saveRecipeStep(savedRecipe, recipeStepRequest));
}

@Transactional
public void deleteRecipeStepsByRecipe(long recipeId) {
recipeStepRepository.deleteByRecipeId(recipeId);
}
Expand Down

0 comments on commit 4fce6ec

Please sign in to comment.