Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
[BE] fix: CategoryServicemodifyCategoryOrder에서 flush() 호출 추가 (#…
Browse files Browse the repository at this point in the history
…558)

fix: `CategoryService`의 `modifyCategoryOrder`에서 `flush()` 호출 추가
  • Loading branch information
HubCreator authored and echo724 committed Oct 6, 2023
1 parent 288317c commit 1d35c04
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1d35c04

Please sign in to comment.