From 1d35c04fd6296a3d165187e5c644db1a60216ab5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=ED=97=99=ED=81=AC?= Date: Fri, 6 Oct 2023 15:33:38 +0900 Subject: [PATCH] =?UTF-8?q?[BE]=20fix:=20`CategoryService`=EC=9D=98=20`mod?= =?UTF-8?q?ifyCategoryOrder`=EC=97=90=EC=84=9C=20`flush()`=20=ED=98=B8?= =?UTF-8?q?=EC=B6=9C=20=EC=B6=94=EA=B0=80=20(#558)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix: `CategoryService`의 `modifyCategoryOrder`에서 `flush()` 호출 추가 --- .../backend/application/service/category/CategoryService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/java/org/donggle/backend/application/service/category/CategoryService.java b/backend/src/main/java/org/donggle/backend/application/service/category/CategoryService.java index 0b2c12677..a1c1e9c4e 100644 --- a/backend/src/main/java/org/donggle/backend/application/service/category/CategoryService.java +++ b/backend/src/main/java/org/donggle/backend/application/service/category/CategoryService.java @@ -197,7 +197,7 @@ public void modifyCategoryOrder(final Long memberId, final Long categoryId, fina source.changeNextCategoryNull(); final Category preCategory = findPreCategory(source.getId()); preCategory.changeNextCategory(nextCategory); - + categoryRepository.flush(); if (targetCategoryId == LAST_CATEGORY_FLAG) { lastCategory.changeNextCategory(source); } else {