From 12b4182640a19877f0c71d9a453392d9af36a0b9 Mon Sep 17 00:00:00 2001 From: Hanvp Date: Tue, 30 Jan 2024 23:50:30 +0900 Subject: [PATCH] =?UTF-8?q?:recycle:=20Refactor/296=20step=20converter?= =?UTF-8?q?=EC=97=90=EB=A7=8C=20parallel()=20=EC=A0=81=EC=9A=A9=EC=9C=BC?= =?UTF-8?q?=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/zipdabang/server/converter/RecipeConverter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/zipdabang/server/converter/RecipeConverter.java b/src/main/java/zipdabang/server/converter/RecipeConverter.java index 3449456..1f973b5 100644 --- a/src/main/java/zipdabang/server/converter/RecipeConverter.java +++ b/src/main/java/zipdabang/server/converter/RecipeConverter.java @@ -747,7 +747,7 @@ public static TestRecipe toTestRecipe(RecipeRequestDto.CreateRecipeDto request, } public static List toTestRecipeCategory(List categoryIds, TestRecipe recipe) { - return categoryIds.stream().parallel() + return categoryIds.stream() .map(recipeCategoryId -> toTestRecipeCategoryMappingDto(recipeCategoryId, recipe)) .collect(Collectors.toList()); } @@ -801,7 +801,7 @@ private static TestStep toTestStepDto(RecipeRequestDto.StepDto step, TestRecipe } public static List toTestIngredient(RecipeRequestDto.CreateRecipeDto request, TestRecipe recipe) { - return request.getIngredients().stream().parallel() + return request.getIngredients().stream() .map(ingredient -> toTestIngredientDto(ingredient, recipe)) .collect(Collectors.toList()); }